net.sourceforge.acelogger.appender
Class EmptyAppender

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

public final class EmptyAppender
extends Object
implements Appender

A implementation of Appender that do nothing.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
EmptyAppender(String identifier)
          Constructs a EmptyAppender using the supplied identifier.
 
Method Summary
 void appendFooter()
          Appends a footer to this appender.
 void appendHeader()
          Appends a header to this appender.
 void appendLog(LogEvent call)
          Appends a log call using this appender.
 void close()
          This method is responsible for termination and deallocation of any resource used by this appender.
 String getIdentifier()
          Gets a String that identifies this object.
 void open()
          This method is responsible for allocation and preparation of any resource used by this appender.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyAppender

public EmptyAppender(String identifier)
Constructs a EmptyAppender using the supplied identifier.

Parameters:
identifier - The identifier of this appender.
Since:
1.0.0
Method Detail

getIdentifier

public String getIdentifier()
Gets a String that identifies this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
The identifier of this object.

appendLog

public void appendLog(LogEvent call)
Appends a log call using this appender.

Specified by:
appendLog in interface Appender
Parameters:
call - The log call to be appended.

appendFooter

public void appendFooter()
Appends a footer to this appender.

Specified by:
appendFooter in interface Appender

appendHeader

public void appendHeader()
Appends a header to this appender.

Specified by:
appendHeader in interface Appender

close

public void close()
This method is responsible for termination and deallocation of any resource used by this appender.

Specified by:
close in interface Appender

open

public void open()
This method is responsible for allocation and preparation of any resource used by this appender.

Specified by:
open in interface Appender


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.