public class SystemStreamLogger extends AbstractLogger implements Logger
System.out
and System.err
streams.
Debug and info messages are logged to System.out
. Warnings and errors are logged to System.err
.
Clients may instantiate or subclass this class.
Constructor and Description |
---|
SystemStreamLogger() |
Modifier and Type | Method and Description |
---|---|
protected void |
log(Level level,
Object message,
Throwable error)
Logs the specified message and error to
System.out or System.err . |
createMessage, debug, debug, debug, error, error, error, getLevel, info, info, info, isLoggable, setLevel, warning, warning, warning
protected void log(Level level, Object message, Throwable error)
System.out
or System.err
.
Debug and info messages are logged to System.out
. Warnings and errors are logged to System.err
.
log
in class AbstractLogger
level
- the log level (known to be loggable).message
- the information to log (usually a String
), maybe null
.error
- an exception to log, maybe null
.