Package 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 toSystem.outandSystem.errstreams.Debug and info messages are logged to
System.out. Warnings and errors are logged toSystem.err.Clients may instantiate or subclass this class.
-
-
Constructor Summary
Constructors Constructor Description SystemStreamLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidlog(Level level, Object message, Throwable error)Logs the specified message and error toSystem.outorSystem.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
-
-
-
-
Method Detail
-
log
protected void log(Level level, Object message, Throwable error)
Logs the specified message and error toSystem.outorSystem.err.Debug and info messages are logged to
System.out. Warnings and errors are logged toSystem.err.- Specified by:
login classAbstractLogger- Parameters:
level- the log level (known to be loggable).message- the information to log (usually aString), maybenull.error- an exception to log, maybenull.
-
-