Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

NullAppender Class Reference

Inheritance diagram for NullAppender:

Appender List of all members.

Public Member Functions

 this ()
 this (Layout layout)
uint getMask ()
char[] getName ()
void append (Event event)

Static Public Member Functions

static this ()

Private Member Functions

void setLayout (Layout layout)
Layout getLayout ()
void setNext (Appender next)
Appender getNext ()
void close ()

Static Private Member Functions

static uint nextMask ()

Static Private Attributes

static uint mask

Detailed Description

An appender that does nothing. This is useful for cutting and pasting, and for benchmarking the mango.log environment.

Definition at line 50 of file NullAppender.d.


Member Function Documentation

static this  )  [inline, static]
 

Get a unique fingerprint for this class

Reimplemented from Appender.

Definition at line 60 of file NullAppender.d.

References mask, and Appender::nextMask().

this  )  [inline]
 

Construct a NullAppender

Reimplemented from Appender.

Definition at line 71 of file NullAppender.d.

this Layout  layout  )  [inline]
 

Create with the given Layout

Definition at line 81 of file NullAppender.d.

References Appender::setLayout().

uint getMask  )  [inline]
 

Return the fingerprint for this class

Reimplemented from Appender.

Definition at line 92 of file NullAppender.d.

References mask.

char [] getName  )  [inline]
 

Return the name of this class

Reimplemented from Appender.

Definition at line 103 of file NullAppender.d.

void append Event  event  )  [inline]
 

Append an event to the output.

Reimplemented from Appender.

Definition at line 114 of file NullAppender.d.

References Layout::content(), Layout::footer(), and Layout::header().

static uint nextMask  )  [inline, static, protected, inherited]
 

Static method to return a mask for identifying the Appender. Each Appender class should have a unique fingerprint so that we can figure out which ones have been invoked for a given event. A bitmask is a simple an efficient way to do that.

Definition at line 104 of file Appender.d.

Referenced by SocketAppender::this(), and this().

void setLayout Layout  layout  )  [inline, inherited]
 

Set the current layout to be that of the argument.

Definition at line 119 of file Appender.d.

Referenced by SocketAppender::this(), and this().

Layout getLayout  )  [inline, inherited]
 

Return the current Layout

Definition at line 130 of file Appender.d.

References Appender::layout.

void setNext Appender  next  )  [inline, inherited]
 

Attach another appender to this one

Definition at line 141 of file Appender.d.

Referenced by LoggerInstance::addAppender().

Appender getNext  )  [inline, inherited]
 

Return the next appender in the list

Definition at line 152 of file Appender.d.

References Appender::next.

Referenced by LoggerInstance::append().

void close  )  [inline, inherited]
 

Close this appender. This would be used for file, sockets, and such like.

Reimplemented in VersionIsolated::FileAppender, and SocketAppender.

Definition at line 164 of file Appender.d.


Member Data Documentation

uint mask [static, private]
 

Definition at line 52 of file NullAppender.d.

Referenced by getMask(), and this().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:40 2005 for Mango by  doxygen 1.4.0