net.sf.wraplog
Class SystemLogger
java.lang.Object
net.sf.wraplog.AbstractLogger
net.sf.wraplog.SystemLogger
- Direct Known Subclasses:
- Logger
- public class SystemLogger
- extends AbstractLogger
Logger to write messages to System.out
(debug, info) and
System.err
(warn, error).
Updated to WrapLog version 1.1.
- Author:
- Thomas Aglassinger
- See Also:
System.err
,
System.out
Method Summary |
protected String |
getLevelText(int logLevel)
Return a text that represents logLevel . |
protected void |
reallyLog(int logLevel,
String message,
Throwable error)
Logs a message and optional error details. |
Methods inherited from class net.sf.wraplog.AbstractLogger |
checkLevel, debug, debug, error, error, getLevel, getLoggedMessageCount, info, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, setLevel, warn, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemLogger
public SystemLogger()
reallyLog
protected void reallyLog(int logLevel,
String message,
Throwable error)
- Description copied from class:
AbstractLogger
- Logs a message and optional error details.
- Specified by:
reallyLog
in class AbstractLogger
- Parameters:
logLevel
- one of: Level.DEBUG, Level.INFO, Level.WARN, Level.ERRORmessage
- the actual message; this will never be null
error
- an error that is related to the message; unless null
, the name and stack trace of the error are logged
getLevelText
protected String getLevelText(int logLevel)
- Return a text that represents
logLevel
.