com.jrefinery.report.util
Class SystemOutLogTarget

java.lang.Object
  |
  +--com.jrefinery.report.util.SystemOutLogTarget
All Implemented Interfaces:
org.jfree.util.LogTarget, java.io.Serializable

public class SystemOutLogTarget
extends java.lang.Object
implements org.jfree.util.LogTarget, java.io.Serializable

A log target that sends all log messages to the System.out stream.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jfree.util.LogTarget
DEBUG, ERROR, INFO, LEVELS, WARN
 
Constructor Summary
SystemOutLogTarget()
          The default constructor.
 
Method Summary
 void log(int level, java.lang.Object message)
          Logs a message to the main log stream.
 void log(int level, java.lang.Object message, java.lang.Exception e)
          logs an message to the main-log stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOutLogTarget

public SystemOutLogTarget()
The default constructor.

All LogTarget implementations need a default constructor.

Method Detail

log

public void log(int level,
                java.lang.Object message)
Logs a message to the main log stream. All attached logStreams will also receive this message. If the given log-level is higher than the given debug-level in the main config file, no logging will be done.

Specified by:
log in interface org.jfree.util.LogTarget
Parameters:
level - log level of the message.
message - text to be logged.

log

public void log(int level,
                java.lang.Object message,
                java.lang.Exception e)
logs an message to the main-log stream. All attached logStreams will also receive this message. If the given log-level is higher than the given debug-level in the main config file, no logging will be done. The exception's stacktrace will be appended to the log-stream

Specified by:
log in interface org.jfree.util.LogTarget
Parameters:
level - log level of the message.
message - text to be logged.
e - the exception, which should be logged.