Class SystemLogger

  extended bynet.sf.wraplog.AbstractLogger
      extended bynet.sf.wraplog.SystemLogger
Direct Known Subclasses:

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.

Thomas Aglassinger
See Also:
System.err, System.out

Constructor Summary
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

Constructor Detail


public SystemLogger()
Method Detail


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
logLevel - one of: Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR
message - 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


protected String getLevelText(int logLevel)
Return a text that represents logLevel.