com.sodius.mdw.core.util.log
Class SystemStreamLogger
java.lang.Object
com.sodius.mdw.core.util.log.AbstractLogger
com.sodius.mdw.core.util.log.SystemStreamLogger
- All Implemented Interfaces:
- Logger
public class SystemStreamLogger
- extends AbstractLogger
- implements Logger
Logger implementation which outputs log messages to 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.
|
Method Summary |
protected void |
log(Level level,
Object message,
Throwable error)
Logs the specified message and error to System.out or System.err. |
| Methods inherited from class com.sodius.mdw.core.util.log.AbstractLogger |
createMessage, debug, debug, debug, error, error, error, getLevel, info, info, info, isLoggable, setLevel, warning, warning, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sodius.mdw.core.util.log.Logger |
debug, debug, debug, error, error, error, getLevel, info, info, info, isLoggable, setLevel, warning, warning, warning |
SystemStreamLogger
public SystemStreamLogger()
log
protected void log(Level level,
Object message,
Throwable error)
- Logs the specified message and error to
System.out or System.err.
Debug and info messages are logged to System.out.
Warnings and errors are logged to System.err.
- Specified by:
log in class AbstractLogger
- Parameters:
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.