de.infinityloop.util.log
Class StaticLogger

java.lang.Object
  extended by de.infinityloop.util.log.StaticLogger

public class StaticLogger
extends java.lang.Object

This is the one and only class that attracts all Logging from classes not tied by reference to any other upCast classes that build a logging chain (app (converter ( module+ ) )+ ){1}. This allows us to attach this log event "collector" object to attach to e.g. the application logger after that is available.

Author:
Christian Roth

Constructor Summary
StaticLogger()
           
 
Method Summary
static LogSource getLogger()
          This method returns the logger hub to use for static, context free logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticLogger

public StaticLogger()
Method Detail

getLogger

public static LogSource getLogger()
This method returns the logger hub to use for static, context free logging. Context (on a per thread basis) is established by the use of MDC.

Returns:
the single, library-/application-wide LogSource to use when no further context is available.