All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ups.xmlsdk.util.logging.DefaultLogFactory

java.lang.Object
   |
   +----com.ups.xmlsdk.util.logging.DefaultLogFactory

public class DefaultLogFactory
extends Object
implements LogFactory
Default log factory. Default logger logs to console.


Method Index

 o addLogger(Logger)
Add a logger, indexed by its facility.
 o getDefaultLogger()
Get the default logger for the application.
 o getLogger(String)
Get the logger for the given facility, or null if there is none.
 o getOrAddLogger(String)
Get the logger for the given facility, and if null, create one that delegates to the default logger.
 o instance()
Get the single instance of this factory
 o setDefaultLogger(Logger)
Set the default logger for the application

Methods

 o addLogger
 public void addLogger(Logger l)
Add a logger, indexed by its facility.

 o getDefaultLogger
 public Logger getDefaultLogger()
Get the default logger for the application.

 o getLogger
 public Logger getLogger(String facility)
Get the logger for the given facility, or null if there is none.

 o getOrAddLogger
 public Logger getOrAddLogger(String facility)
Get the logger for the given facility, and if null, create one that delegates to the default logger.

 o instance
 public static DefaultLogFactory instance() throws Exception
Get the single instance of this factory

 o setDefaultLogger
 public void setDefaultLogger(Logger l)
Set the default logger for the application


All Packages  Class Hierarchy  This Package  Previous  Next  Index