com.antelmann.util.logging
Class AppendableLogWriter
java.lang.Object
com.antelmann.util.logging.AbstractLogWriter<String>
com.antelmann.util.logging.AppendableLogWriter
- All Implemented Interfaces:
- Filter<LogEntry>, LogWriter, Wrapped<Appendable>
- Direct Known Subclasses:
- ConsoleLog
public class AppendableLogWriter
- extends AbstractLogWriter<String>
- implements Wrapped<Appendable>
writes to a given Appendable (PrintStream, StringBuffer, etc) using a String
- Since:
- 03.02.2014, 01:19:48
- Author:
- holger
- See Also:
Appendable,
PrintStream,
StringBuilder,
StringLineFormatter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppendableLogWriter
public AppendableLogWriter(Appendable appendable)
AppendableLogWriter
public AppendableLogWriter(Appendable appendable,
LogEntryFormatter<String> formatter)
getAppendable
public Appendable getAppendable()
unwrap
public Appendable unwrap()
- Description copied from interface:
Wrapped
- returns the embedded instance that this wrapper encloses
- Specified by:
unwrap in interface Wrapped<Appendable>
writeLogPattern
protected void writeLogPattern(String pattern)
throws LogException
- Description copied from class:
AbstractLogWriter
- writes the pattern to the log entity.
If the LogEntryFormatter is null, the pattern is the LogEntry object
itself; otherwise, the pattern is the result of formatting the LogEntry
with the given LogEntryFormatter.
- Specified by:
writeLogPattern in class AbstractLogWriter<String>
- Throws:
LogException
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads