public class SystemOutLogger extends java.lang.Object implements POILogger
POILogger
which uses System.out.println.
This can be used to provide simply output from applications, however the
suggested approach in production systems is to use the CommonsLogger
and configure proper log-handling via Apache Commons Logging.Constructor and Description |
---|
SystemOutLogger() |
Modifier and Type | Method and Description |
---|---|
void |
_log(int level,
java.lang.Object obj1)
Log a message
|
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)
Initialize the Logger - belongs to the SPI, called from the POILogFactory
|
public void initialize(java.lang.String cat)
POILogger
initialize
in interface POILogger
cat
- the String that defines the logpublic void _log(int level, java.lang.Object obj1)
public void _log(int level, java.lang.Object obj1, java.lang.Throwable exception)
public boolean check(int level)
check
in interface POILogger
level
- One of DEBUG, INFO, WARN, ERROR, FATALPOILogger.DEBUG
,
POILogger.INFO
,
POILogger.WARN
,
POILogger.ERROR
,
POILogger.FATAL
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.