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 ()
IWriter setConduit (IConduit conduit)
uint getMask ()
char[] getName ()
synchronized void append (Event event)
synchronized void close ()

Static Public Member Functions

 this ()

Protected Member Functions

 this ()

Private Member Functions

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

Static Private Member Functions

uint nextMask ()

Private Attributes

DisplayWriter writer
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 53 of file FileAppender.d.


Constructor & Destructor Documentation

~this  )  [inline]
 

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

Definition at line 107 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 65 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 74 of file FileAppender.d.

this FilePath  fp  )  [inline]
 

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

Definition at line 83 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 95 of file FileAppender.d.

IConduit getConduit  )  [inline]
 

Return the conduit

Definition at line 118 of file FileAppender.d.

IWriter setConduit IConduit  conduit  )  [inline]
 

Set the conduit

Definition at line 129 of file FileAppender.d.

References DisplayWriter.

uint getMask  )  [inline]
 

Return the fingerprint for this class

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 145 of file FileAppender.d.

char [] getName  )  [inline]
 

Return the name of this class

Reimplemented from Appender.

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 156 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 167 of file FileAppender.d.

References IConduit::flush().

synchronized void close  )  [inline]
 

Close the file associated with this Appender

Reimplemented from Appender.

Definition at line 178 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 103 of file Appender.d.

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

void setLayout Layout  layout  )  [inline, inherited]
 

Set the current layout to be that of the argument.

Definition at line 118 of file Appender.d.

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

Layout getLayout  )  [inline, inherited]
 

Return the current Layout

Definition at line 129 of file Appender.d.

References Appender::layout.

void setNext Appender  next  )  [inline, inherited]
 

Attach another appender to this one

Definition at line 140 of file Appender.d.

Referenced by LoggerInstance::addAppender().

Appender getNext  )  [inline, inherited]
 

Return the next appender in the list

Definition at line 151 of file Appender.d.

Referenced by LoggerInstance::append().


Member Data Documentation

uint mask [static, private]
 

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 55 of file FileAppender.d.

DisplayWriter writer [private]
 

Reimplemented in VersionMango::RollingFileAppender.

Definition at line 56 of file FileAppender.d.

IConduit conduit [private]
 

Definition at line 57 of file FileAppender.d.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:14 2004 for Mango by doxygen 1.3.6