org.pfsw.plugin
Class LoggerProvider

java.lang.Object
  extended by org.pfsw.plugin.LoggerProvider

public class LoggerProvider
extends java.lang.Object

This is the central access point for the package's logger. Replacing the logger here means that all classes in this package will use the new logger for further output.


Field Summary
static java.lang.String LOGGER_NAME
           
 
Method Summary
static org.pfsw.logging.Logger getLogger()
          Returns the current logger used by this component to report errors and exceptions.
static void setLogger(org.pfsw.logging.Logger newLogger)
          Replace the logger by another one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_NAME

public static final java.lang.String LOGGER_NAME
See Also:
Constant Field Values
Method Detail

getLogger

public static org.pfsw.logging.Logger getLogger()
Returns the current logger used by this component to report errors and exceptions.


setLogger

public static void setLogger(org.pfsw.logging.Logger newLogger)
Replace the logger by another one. A value of null installs the prg.pf.logging.NilLogger.