com.antelmann.util.logging
Class ConsoleLog
java.lang.Object
com.antelmann.util.logging.AbstractLogWriter<String>
com.antelmann.util.logging.AppendableLogWriter
com.antelmann.util.logging.ConsoleLog
- All Implemented Interfaces:
- Filter<LogEntry>, LogWriter, Wrapped<Appendable>
public class ConsoleLog
- extends AppendableLogWriter
ConsoleLog prints abbreviated log messages to the console
using System.out.println().
By default, this method writes a short version of the entry to the console.
The default format used here is a special formatter derived from
createDefaultFormatter(String).
ConsoleLog logs synchronously.
- Author:
- Holger Antelmann
- See Also:
LogException,
Logger,
LogEntry
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLog
public ConsoleLog()
ConsoleLog
public ConsoleLog(String prefix)
ConsoleLog
public ConsoleLog(LogEntryFormatter<String> formatter)
createDefaultFormatter
public static LogEntryFormatter<String> createDefaultFormatter(String prefix)
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads