net.sourceforge.acelogger.appender
Class TextFileAppender

java.lang.Object
  extended by net.sourceforge.acelogger.appender.BaseAppender
      extended by net.sourceforge.acelogger.appender.TextFileAppender
All Implemented Interfaces:
Appender, Identifiable

public class TextFileAppender
extends BaseAppender


Constructor Summary
TextFileAppender(String identifier, String fileName, Formatter formatter, ExecutorManager executor)
           
 
Method Summary
 Runnable appendFooterProcess()
          Defines the process used to append a footer to this appender.
 Runnable appendHeaderProcess()
          Defines the process used to append a header to this appender.
 Runnable appendLogProcess(LogEvent call)
          Defines the process used to append a log call.
 Runnable closeProcess()
          Defines the process used to close this appender.
protected  Runnable openProcess()
          Defines the process used to open this appender.
 
Methods inherited from class net.sourceforge.acelogger.appender.BaseAppender
appendFooter, appendHeader, appendLog, close, formatLogCall, getExecutor, getFormatter, getIdentifier, getThreshold, initialize, open, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileAppender

public TextFileAppender(String identifier,
                        String fileName,
                        Formatter formatter,
                        ExecutorManager executor)
Method Detail

openProcess

protected Runnable openProcess()
Defines the process used to open this appender. This may include allocation and preparation of resources.

Overrides:
openProcess in class BaseAppender
Returns:
A Runnable indicating the process used to open this appender.

closeProcess

public Runnable closeProcess()
Defines the process used to close this appender. This may include termination and deallocation of resources.

Overrides:
closeProcess in class BaseAppender
Returns:
A Runnable indicating the process used to close this appender.

appendHeaderProcess

public Runnable appendHeaderProcess()
Defines the process used to append a header to this appender.

Overrides:
appendHeaderProcess in class BaseAppender
Returns:
A Runnable indicating the process used to append a header.

appendFooterProcess

public Runnable appendFooterProcess()
Defines the process used to append a footer to this appender.

Overrides:
appendFooterProcess in class BaseAppender
Returns:
A Runnable indicating the process used to append a footer.

appendLogProcess

public 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.