FileDocCategorySizeDatePackage
NullAppender.javaAPI DocApache log4j 1.2.151824Sat Aug 25 00:09:40 BST 2007org.apache.log4j.varia

NullAppender

public class NullAppender extends AppenderSkeleton
A NullAppender merely exists, it never outputs a message to any device.
author
Ceki Gülc¨

Fields Summary
private static NullAppender
instance
Constructors Summary
public NullAppender()


    
  
Methods Summary
public voidactivateOptions()
There are no options to acticate.

  
protected voidappend(org.apache.log4j.spi.LoggingEvent event)
Does not do anything.

  
public voidclose()

  
public voiddoAppend(org.apache.log4j.spi.LoggingEvent event)
Does not do anything.

  
public org.apache.log4j.varia.NullAppendergetInstance()
Whenever you can, use this method to retreive an instance instead of instantiating a new one with new.

    return instance;
  
public booleanrequiresLayout()
NullAppenders do not need a layout.

    return false;