com.antelmann.util.logging
Class ConsoleLog
java.lang.Object
com.antelmann.util.logging.AbstractLogWriter<String>
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
|
Method Summary |
void |
writeLogPattern(String pattern)
This method writes a short version of the entry to the console. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLog
public ConsoleLog()
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