org.pfsw.db
Class LoggerProvider

java.lang.Object
  extended by org.pfsw.db.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.


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
 

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.