Package org.apache.poi.util
Class NullLogger
java.lang.Object
org.apache.poi.util.POILogger
org.apache.poi.util.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.poi.util.POILogger
DEBUG, ERROR, FATAL, INFO, LEVEL_STRINGS, LEVEL_STRINGS_SHORT, WARN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Log a messageprotected void
Log a messageboolean
check
(int level) Check if a logger is enabled to log at the specified levelvoid
initialize
(String cat) void
Log a message.
-
Constructor Details
-
NullLogger
public NullLogger()
-
-
Method Details
-
initialize
- Specified by:
initialize
in classPOILogger
-
_log
Log a message -
_log
Log a message -
log
Log a message. Lazily appends Object parameters together. If the last parameter is aThrowable
it is logged specially. -
check
public boolean check(int level) Check if a logger is enabled to log at the specified level
-