org.apache.ws.jaxme.logging
public class LoggerAccess extends Object
This class implements access to the Loggers through static methods. The class typically configures itself from the environment. However, you may choose to configure the class explicitly by invoking {@link #setLoggerFactory(LoggerFactory)}.
Method Summary | |
---|---|
static Logger | getLogger(String pName) Returns a new logger with the given name. |
static Logger | getLogger(Class pClass) Shortcut for |
static LoggerFactory | getLoggerFactory() Returns the logger factory. |
static LoggerFactory | newLoggerFactory() Creates a new instance of {@link LoggerFactory}. |
static void | setLoggerFactory(LoggerFactory pFactory) Sets the logger factory. |
Returns a new logger with the given name.
Shortcut for getLogger(pClass.getName())
.
Returns the logger factory. If a logger factory is set (by previous calls to {@link #newLoggerFactory()} or {@link #setLoggerFactory(LoggerFactory)}), returns that factory. Otherwise invokes these methods and returns the result.
Creates a new instance of {@link LoggerFactory}. The implementation class is determined as follows:
org.apache.ws.jaxme.logging.LoggerFactory
is set, uses the given class name.META-INF/services/org.apache.ws.jaxme.logging.LoggerFactory
exists, uses the given class name.System.err
.Sets the logger factory.