org.jscience.util.logging
Class ConsoleLog

java.lang.Object
  extended by org.jscience.util.logging.AbstractLogWriter
      extended by org.jscience.util.logging.ConsoleLog
All Implemented Interfaces:
Filter<LogEntry>, LogWriter

public class ConsoleLog
extends AbstractLogWriter

ConsoleLog prints abbreviated log messages to the console using System.out.println(). ConsoleLog logs synchronously.

See Also:
LogException, Logger, LogEntry

Field Summary
 
Fields inherited from class org.jscience.util.logging.AbstractLogWriter
filter, formatter
 
Constructor Summary
ConsoleLog()
           
 
Method Summary
 void writeLogEntry(java.lang.Object pattern)
          This method writes a short version of the entry to the console.
 
Methods inherited from class org.jscience.util.logging.AbstractLogWriter
accept, getLogFilter, getLogFormatter, setLogFilter, setLogFormatter, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLog

public ConsoleLog()
Method Detail

writeLogEntry

public void writeLogEntry(java.lang.Object pattern)
This method writes a short version of the entry to the console.
The format is: "[time-level] message (param1)"
If an exception was included, it will be printed in the next line. The other parameters are ignored.

Specified by:
writeLogEntry in class AbstractLogWriter
Parameters:
pattern - DOCUMENT ME!