net.sourceforge.acelogger.appender
Class PrintStreamAppender
java.lang.Object
net.sourceforge.acelogger.appender.BaseAppender
net.sourceforge.acelogger.appender.PrintStreamAppender
- All Implemented Interfaces:
- Appender, Identifiable
- Direct Known Subclasses:
- SystemErrAppender, SystemOutAppender
public class PrintStreamAppender
- extends BaseAppender
An implementation of Appender abstracting common PrintStream writing.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Zardi (https://sourceforge.net/users/daniel_zardi)
Methods inherited from class net.sourceforge.acelogger.appender.BaseAppender |
appendFooter, appendFooterProcess, appendHeader, appendHeaderProcess, appendLog, close, closeProcess, formatLogCall, getExecutor, getFormatter, getIdentifier, getThreshold, initialize, open, openProcess, setThreshold |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintStreamAppender
public PrintStreamAppender(String identifier,
PrintStream destination,
Formatter formatter,
ExecutorManager executor)
- Constructs a new PrintStreamAppender with the supplied information.
- Parameters:
identifier
- A string that identifies this appender.destination
- The PrintStream where data will be written.formatter
- The Formatter used to format each log call.executor
- The ExecutorManager used to process the log calls.- Since:
- 1.0.0
appendLogProcess
protected Runnable appendLogProcess(LogEvent call)
- Defines the process used to append a log call.
- Specified by:
appendLogProcess
in class BaseAppender
- Parameters:
call
- The call that will be logged.
- Returns:
- A Runnable indicating the process used to log this call.
Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.