Package org.apache.xmlbeans.impl.common
Class NullLogger
- java.lang.Object
-
- org.apache.xmlbeans.impl.common.XBLogger
-
- org.apache.xmlbeans.impl.common.NullLogger
-
public class NullLogger extends XBLogger
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.
-
-
Constructor Summary
Constructors Constructor Description NullLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(int level)
Check if a logger is enabled to log at the specified levelvoid
initialize(java.lang.String cat)
void
log(int level, java.lang.Object... objs)
Log a message.
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.String cat)
- Specified by:
initialize
in classXBLogger
-
log
public void log(int level, java.lang.Object... objs)
Log a message. Lazily appends Object parameters together. If the last parameter is aThrowable
it is logged specially.
-
-