org.apache.log4j.varia

Class NullAppender

public class NullAppender extends AppenderSkeleton

A NullAppender merely exists, it never outputs a message to any device.

Author: Ceki Gülc¨

Constructor Summary
NullAppender()
Method Summary
voidactivateOptions()
There are no options to acticate.
protected voidappend(LoggingEvent event)
Does not do anything.
voidclose()
voiddoAppend(LoggingEvent event)
Does not do anything.
NullAppendergetInstance()
Whenever you can, use this method to retreive an instance instead of instantiating a new one with new.
booleanrequiresLayout()
NullAppenders do not need a layout.

Constructor Detail

NullAppender

public NullAppender()

Method Detail

activateOptions

public void activateOptions()
There are no options to acticate.

append

protected void append(LoggingEvent event)
Does not do anything.

close

public void close()

doAppend

public void doAppend(LoggingEvent event)
Does not do anything.

getInstance

public NullAppender getInstance()
Whenever you can, use this method to retreive an instance instead of instantiating a new one with new.

requiresLayout

public boolean requiresLayout()
NullAppenders do not need a layout.
Copyright 2000-2005 Apache Software Foundation.