com.levigo.util.log.config
Class LoggingConfiguration

java.lang.Object
  extended by com.levigo.util.log.config.LoggingConfiguration

public abstract class LoggingConfiguration
extends Object

Main entry Point to configure the logging system. This class provides access to the different available settings of the levigo logging framework facade.
This class is not intended to be subclassed by clients.

Author:
Francois Fernandes

Constructor Summary
protected LoggingConfiguration()
           
 
Method Summary
abstract  void addQualifiedLogListener(QualifiedLogListener listener)
          Add a global QualifiedLogListener.
abstract  void addThreadLocalQualifiedLogListener(QualifiedLogListener listener)
          Add a thread local QualifiedLogListener.
static LoggingConfiguration getGlobal()
          Returns the global LoggingConfiguration instance.
abstract  void removeQualifiedLogListener(QualifiedLogListener listener)
          Remove a global QualifiedLogListener.
abstract  void removeThreadLocalQualifiedLogListener(QualifiedLogListener listener)
          Remove a thread local QualifiedLogListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingConfiguration

protected LoggingConfiguration()
Method Detail

getGlobal

public static LoggingConfiguration getGlobal()
Returns the global LoggingConfiguration instance. At the Moment this is the only existing LoggingConfiguration instance which will be shared among all logging participants and clients.

Returns:
the global LoggingConfiguration instance.

removeQualifiedLogListener

public abstract void removeQualifiedLogListener(QualifiedLogListener listener)
Remove a global QualifiedLogListener.

Parameters:
listener - the global QualifiedLogListener to be removed.

addQualifiedLogListener

public abstract void addQualifiedLogListener(QualifiedLogListener listener)
Add a global QualifiedLogListener. A QualifiedLogListener registered using this method will receive all QualifiedLogEvents produced by the levigo logging facade. Removal is possible using removeQualifiedLogListener(QualifiedLogListener)

Parameters:
listener - the global QualifiedLogListener to be added

removeThreadLocalQualifiedLogListener

public abstract void removeThreadLocalQualifiedLogListener(QualifiedLogListener listener)
Remove a thread local QualifiedLogListener.

Parameters:
listener - the thread local QualifiedLogListener to be removed.

addThreadLocalQualifiedLogListener

public abstract void addThreadLocalQualifiedLogListener(QualifiedLogListener listener)
Add a thread local QualifiedLogListener. A QualifiedLogListener registered using this method will receive all QualifiedLogEvents produced by the levigo logging facade on the current thread. Removal is possible using removeThreadLocalQualifiedLogListener(QualifiedLogListener)

Parameters:
listener - the thread local QualifiedLogListener to be added


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.