|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.common.XBLogger org.apache.xmlbeans.impl.common.NullLogger
public class NullLogger
A logger class that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.
Field Summary |
---|
Fields inherited from class org.apache.xmlbeans.impl.common.XBLogger |
---|
DEBUG, ERROR, FATAL, INFO, LEVEL_STRINGS, LEVEL_STRINGS_SHORT, WARN |
Constructor Summary | |
---|---|
NullLogger()
|
Method Summary | |
---|---|
protected void |
_log(int level,
java.lang.Object obj1)
Log a message |
protected void |
_log(int level,
java.lang.Object obj1,
java.lang.Throwable exception)
Log a message |
boolean |
check(int level)
Check if a logger is enabled to log at the specified level |
void |
initialize(java.lang.String cat)
|
void |
log(int level,
java.lang.Object... objs)
Log a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullLogger()
Method Detail |
---|
public void initialize(java.lang.String cat)
initialize
in class XBLogger
protected void _log(int level, java.lang.Object obj1)
_log
in class XBLogger
level
- One of DEBUG, INFO, WARN, ERROR, FATALobj1
- The object to log.protected void _log(int level, java.lang.Object obj1, java.lang.Throwable exception)
_log
in class XBLogger
level
- One of DEBUG, INFO, WARN, ERROR, FATALobj1
- The object to log. This is converted to a string.exception
- An exception to be loggedpublic void log(int level, java.lang.Object... objs)
Throwable
it is logged specially.
log
in class XBLogger
level
- One of DEBUG, INFO, WARN, ERROR, FATALobjs
- the objects to place in the messagepublic boolean check(int level)
check
in class XBLogger
level
- One of DEBUG, INFO, WARN, ERROR, FATAL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |