org.apache.ws.jaxme.logging
Class LoggerAccess
java.lang.Object
org.apache.ws.jaxme.logging.LoggerAccess
public class LoggerAccess
extends java.lang.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
setLoggerFactory(LoggerFactory)
.
getLogger
public static Logger getLogger(Class pClass)
Shortcut for getLogger(pClass.getName())
.
getLogger
public static Logger getLogger(String pName)
Returns a new logger with the given name.
newLoggerFactory
public static LoggerFactory newLoggerFactory()
Creates a new instance of
LoggerFactory
. The
implementation class is determined as follows:
- If the system property
org.apache.ws.jaxme.logging.LoggerFactory
is set, uses the given class name. - If the resource
META-INF/services/org.apache.ws.jaxme.logging.LoggerFactory
exists, uses the given class name. - Otherwise returns a default instance logging to
System.err
.
setLoggerFactory
public static void setLoggerFactory(LoggerFactory pFactory)
Sets the logger factory.