Holger's
Java API

com.antelmann.util.logging
Class ConsoleLog

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

public class ConsoleLog
extends AbstractLogWriter<String>

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

Author:
Holger Antelmann
See Also:
LogException, Logger, LogEntry

Field Summary
 
Fields inherited from class com.antelmann.util.logging.AbstractLogWriter
filter
 
Constructor Summary
ConsoleLog()
           
 
Method Summary
 void writeLogPattern(String pattern)
          This method writes a short version of the entry to the console.
 
Methods inherited from class com.antelmann.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

writeLogPattern

public void writeLogPattern(String 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. This format may be changed by setting a different LogEntryFormatter.

Specified by:
writeLogPattern in class AbstractLogWriter<String>


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads