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.
-
addLogger(Logger)
- Add a logger, indexed by its facility.
-
getDefaultLogger()
- Get the default logger for the application.
-
getLogger(String)
- Get the logger for the given facility, or null if there is none.
-
getOrAddLogger(String)
- Get the logger for the given facility, and if null, create one
that delegates to the default logger.
-
instance()
- Get the single instance of this factory
-
setDefaultLogger(Logger)
- Set the default logger for the application
addLogger
public void addLogger(Logger l)
- Add a logger, indexed by its facility.
getDefaultLogger
public Logger getDefaultLogger()
- Get the default logger for the application.
getLogger
public Logger getLogger(String facility)
- Get the logger for the given facility, or null if there is none.
getOrAddLogger
public Logger getOrAddLogger(String facility)
- Get the logger for the given facility, and if null, create one
that delegates to the default logger.
instance
public static DefaultLogFactory instance() throws Exception
- Get the single instance of this factory
setDefaultLogger
public void setDefaultLogger(Logger l)
- Set the default logger for the application
All Packages Class Hierarchy This Package Previous Next Index