Log4j Version 1.2.14: Class NullAppender

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.performance Class NullAppender

java.lang.Object
  |
  +--org.apache.log4j.AppenderSkeleton
        |
        +--org.apache.log4j.performance.NullAppender
All Implemented Interfaces:
Appender, OptionHandler

public class NullAppender
extends AppenderSkeleton

A bogus appender which calls the format method of its layout object but does not write the result anywhere.

The org.apache.log4j.performance.NullAppender class is intended for internal use only. Consequently, it is not included in the log4j.jar file.


static String
 String
 
 
 
 void
 void
 void
 boolean
 
 
 

s

public static String s

t

public String t

NullAppender

public NullAppender()

NullAppender

public NullAppender(Layout layout)

close

public void close()
Description copied from interface: Appender
Release any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.


doAppend

public void doAppend(LoggingEvent event)
Description copied from class: AppenderSkeleton
This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent) method.
Overrides:
doAppend in class AppenderSkeleton

append

public void append(LoggingEvent event)
Description copied from class: AppenderSkeleton
Subclasses of AppenderSkeleton should implement this method to perform actual logging. See also AppenderSkeleton.doAppend method.
Overrides:
append in class AppenderSkeleton

requiresLayout

public boolean requiresLayout()
This is a bogus appender but it still uses a layout.

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.