@Internal public interface POILogger
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG |
static int |
ERROR |
static int |
FATAL |
static int |
INFO |
static int |
WARN |
Modifier and Type | Method and Description |
---|---|
void |
_log(int level,
java.lang.Object obj1)
Log a message - belongs to the SPI, usually not called from user code
|
void |
_log(int level,
java.lang.Object obj1,
java.lang.Throwable exception)
Log a message - belongs to the SPI, usually not called from user code
|
boolean |
check(int level)
Check if a logger is enabled to log at the specified level
This allows code to avoid building strings or evaluating functions in
the arguments to log.
|
void |
initialize(java.lang.String cat)
Initialize the Logger - belongs to the SPI, called from the POILogFactory
|
default void |
log(int level,
java.lang.Object... objs)
Log a message.
|
static final int DEBUG
static final int INFO
static final int WARN
static final int ERROR
static final int FATAL
void initialize(java.lang.String cat)
cat
- the String that defines the log@Internal void _log(int level, java.lang.Object obj1)
level
- One of DEBUG, INFO, WARN, ERROR, FATALobj1
- The object to log. This is converted to a string.@Internal void _log(int level, java.lang.Object obj1, java.lang.Throwable exception)
level
- One of DEBUG, INFO, WARN, ERROR, FATALobj1
- The object to log. This is converted to a string.exception
- An exception to be loggedboolean check(int level)
if (logger.check(POILogger.INFO)) {
logger.log(POILogger.INFO, "Avoid concatenating " + " strings and evaluating " + functions());
}
level
- One of DEBUG, INFO, WARN, ERROR, FATALdefault void log(int level, java.lang.Object... objs)
Throwable
it is logged specially.level
- One of DEBUG, INFO, WARN, ERROR, FATALobjs
- the objects to place in the messageCopyright 2020 The Apache Software Foundation or its licensors, as applicable.