|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.logging.LoggerAccess
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)
.
Constructor Summary | |
LoggerAccess()
|
Method Summary | |
static Logger |
getLogger(java.lang.Class pClass)
Shortcut for getLogger(pClass.getName()) . |
static Logger |
getLogger(java.lang.String pName)
Returns a new logger with the given name. |
static LoggerFactory |
getLoggerFactory()
Returns the logger factory. |
static LoggerFactory |
newLoggerFactory()
Creates a new instance of LoggerFactory . |
static void |
setLoggerFactory(LoggerFactory pFactory)
Sets the logger factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoggerAccess()
Method Detail |
public static void setLoggerFactory(LoggerFactory pFactory)
Sets the logger factory.
public static LoggerFactory newLoggerFactory()
Creates a new instance of LoggerFactory
. The
implementation class is determined as follows:
net.sf.jaxme.logging.LoggerFactory
is set, uses the given class name.META-INF/services/net.sf.jaxme.logging.LoggerFactory
exists, uses the given class name.System.err
.
public static LoggerFactory getLoggerFactory()
Returns the logger factory. If a logger factory is set (by
previous calls to newLoggerFactory()
or
setLoggerFactory(LoggerFactory)
), returns that factory. Otherwise
invokes these methods and returns the result.
public static Logger getLogger(java.lang.String pName)
Returns a new logger with the given name.
public static Logger getLogger(java.lang.Class pClass)
Shortcut for getLogger(pClass.getName())
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |