Package org.apache.poi.util
Class CommonsLogger
- java.lang.Object
-
- org.apache.poi.util.POILogger
-
- org.apache.poi.util.CommonsLogger
-
public class CommonsLogger extends POILogger
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 Constructor Description CommonsLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_log(int level, java.lang.Object obj1)
Log a messageprotected void
_log(int level, java.lang.Object obj1, java.lang.Throwable exception)
Log a messageboolean
check(int level)
Check if a logger is enabled to log at the specified levelvoid
initialize(java.lang.String cat)
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.String cat)
- Specified by:
initialize
in classPOILogger
-
_log
protected void _log(int level, java.lang.Object obj1)
Log a message
-
_log
protected void _log(int level, java.lang.Object obj1, java.lang.Throwable exception)
Log a message
-
-