com.antelmann.util.logging
Class StringBufferLog
java.lang.Object
com.antelmann.util.logging.AbstractLogWriter<String>
com.antelmann.util.logging.StringBufferLog
- All Implemented Interfaces:
- Filter<LogEntry>, LogWriter
public class StringBufferLog
- extends AbstractLogWriter<String>
StringBufferLog writes log messages into a StringBuffer.
- Author:
- Holger Antelmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected StringBuffer buffer
StringBufferLog
public StringBufferLog()
StringBufferLog
public StringBufferLog(LogEntryFormatter<String> formatter)
StringBufferLog
public StringBufferLog(StringBuffer buffer)
- uses a StringLineFormatter
- See Also:
StringLineFormatter
StringBufferLog
public StringBufferLog(StringBuffer buffer,
LogEntryFormatter<String> formatter)
getStringBuffer
public StringBuffer getStringBuffer()
writeLogPattern
public void writeLogPattern(String pattern)
- 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>
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads