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

VersionIsolated::FileAppender Class Reference

Inheritance diagram for VersionIsolated::FileAppender:

Appender List of all members.

Public Member Functions

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

Static Public Member Functions

static this ()

Protected Member Functions

 this ()
void setFile (File file)

Private Member Functions

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

Static Private Member Functions

static uint nextMask ()

Private Attributes

File file

Static Private Attributes

static 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 55 of file FileAppender.d.


Constructor & Destructor Documentation

~this  )  [inline]
 

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

Definition at line 110 of file FileAppender.d.

References close().


Member Function Documentation

static this  )  [inline, static]
 

Get a unique fingerprint for this class

Reimplemented from Appender.

Definition at line 66 of file FileAppender.d.

this  )  [inline, protected]
 

Create an Appender and default its layout to SimpleLayout.

Reimplemented from Appender.

Definition at line 75 of file FileAppender.d.

this char[]  fp  )  [inline]
 

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

Definition at line 86 of file FileAppender.d.

this char[]  fp,
Layout  layout
[inline]
 

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

Definition at line 98 of file FileAppender.d.

File getFile  )  [inline]
 

Return the file

Definition at line 121 of file FileAppender.d.

void setFile File  file  )  [inline, protected]
 

Set the file

Definition at line 132 of file FileAppender.d.

uint getMask  )  [inline]
 

Return the fingerprint for this class

Reimplemented from Appender.

Definition at line 143 of file FileAppender.d.

char [] getName  )  [inline]
 

Return the name of this class

Reimplemented from Appender.

Definition at line 154 of file FileAppender.d.

synchronized void append Event  event  )  [inline]
 

Append an event to the output.

Reimplemented from Appender.

Definition at line 165 of file FileAppender.d.

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

synchronized void close  )  [inline]
 

Close the file associated with this Appender

Reimplemented from Appender.

Definition at line 181 of file FileAppender.d.

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

Referenced by SocketAppender::this(), and NullAppender::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(), and NullAppender::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.

References Appender::next.

Referenced by LoggerInstance::append().


Member Data Documentation

uint mask [static, private]
 

Definition at line 57 of file FileAppender.d.

File file [private]
 

Definition at line 58 of file FileAppender.d.


The documentation for this class was generated from the following file:
Generated on Fri Nov 11 18:44:48 2005 for Mango by  doxygen 1.4.0