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

VersionMango::FileAppender Class Reference

Inheritance diagram for VersionMango::FileAppender:

Appender VersionMango::RollingFileAppender List of all members.

Public Member Functions

 this (FilePath fp)
 this (FilePath fp, Layout layout)
 ~this ()
IConduit getConduit ()
uint getMask ()
char[] getName ()
synchronized void append (Event event)
synchronized void close ()

Static Public Member Functions

 this ()

Protected Member Functions

 this ()
IBuffer setConduit (IConduit conduit)

Private Member Functions

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

Static Private Member Functions

uint nextMask ()

Private Attributes

IBuffer buffer
IConduit conduit

Static Private Attributes

uint mask

Detailed Description

Append log messages to a file. This basic version has no rollover support, so it just keeps on adding to the file. There's also a RollingFileAppender that may suit your needs.

Definition at line 58 of file FileAppender.d.


Constructor & Destructor Documentation

~this  )  [inline]
 

Make sure the file is closed when we're GC'd

Definition at line 114 of file FileAppender.d.


Member Function Documentation

this  )  [inline, static]
 

Get a unique fingerprint for this class

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 70 of file FileAppender.d.

this  )  [inline, protected]
 

Create an Appender and default its layout to SimpleLayout.

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 79 of file FileAppender.d.

this FilePath  fp  )  [inline]
 

Create a basic FileAppender to a file with the specified path.

Definition at line 90 of file FileAppender.d.

this FilePath  fp,
Layout  layout
[inline]
 

Create a basic FileAppender to a file with the specified path, and with the given Layout

Definition at line 102 of file FileAppender.d.

IConduit getConduit  )  [inline]
 

Return the conduit

Definition at line 125 of file FileAppender.d.

IBuffer setConduit IConduit  conduit  )  [inline, protected]
 

Set the conduit

Definition at line 136 of file FileAppender.d.

References IConduit::createBuffer().

uint getMask  )  [inline]
 

Return the fingerprint for this class

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 149 of file FileAppender.d.

char [] getName  )  [inline]
 

Return the name of this class

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 160 of file FileAppender.d.

synchronized void append Event  event  )  [inline]
 

Append an event to the output.

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 171 of file FileAppender.d.

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

synchronized void close  )  [inline]
 

Close the file associated with this Appender

Reimplemented from Appender.

Definition at line 187 of file FileAppender.d.

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 106 of file Appender.d.

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

void setLayout Layout  layout  )  [inline, inherited]
 

Set the current layout to be that of the argument.

Definition at line 121 of file Appender.d.

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

Layout getLayout  )  [inline, inherited]
 

Return the current Layout

Definition at line 132 of file Appender.d.

References Appender::layout.

void setNext Appender  next  )  [inline, inherited]
 

Attach another appender to this one

Definition at line 143 of file Appender.d.

Referenced by LoggerInstance::addAppender().

Appender getNext  )  [inline, inherited]
 

Return the next appender in the list

Definition at line 154 of file Appender.d.

Referenced by LoggerInstance::append().


Member Data Documentation

uint mask [static, private]
 

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 60 of file FileAppender.d.

IBuffer buffer [private]
 

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 61 of file FileAppender.d.

IConduit conduit [private]
 

Definition at line 62 of file FileAppender.d.


The documentation for this class was generated from the following file:
Generated on Tue Jan 25 21:18:45 2005 for Mango by doxygen 1.3.6