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

RollingFileAppender Class Reference

Inheritance diagram for RollingFileAppender:

FileAppender List of all members.

Public Member Functions

 this (char[] path, int count, ulong maxSize)
 this (char[] path, int count, ulong maxSize, Layout layout)
uint getMask ()
char[] getName ()
synchronized void append (Event event)

Static Public Member Functions

 this ()

Private Member Functions

void nextFile ()
 this (char[] path)
 this (char[] path, Layout layout)
IConduit getConduit ()
IWriter setConduit (IConduit conduit)
synchronized void close ()

Private Attributes

FilePath[] paths
uint index
IWriter writer
ulong maxSize
ulong fileSize

Static Private Attributes

uint mask

Detailed Description

Append log messages to a file set.

Definition at line 52 of file RollingFileAppender.d.


Member Function Documentation

this  )  [inline, static]
 

Get a unique fingerprint for this class

Reimplemented from FileAppender.

Definition at line 67 of file RollingFileAppender.d.

References Appender::nextMask().

this char[]  path,
int  count,
ulong  maxSize
[inline]
 

Create a basic RollingFileAppender to a file-set with the specified path.

Definition at line 79 of file RollingFileAppender.d.

References maxSize.

this char[]  path,
int  count,
ulong  maxSize,
Layout  layout
[inline]
 

Create a basic RollingFileAppender to a file-set with the specified path, and with the given Layout

Definition at line 106 of file RollingFileAppender.d.

References maxSize, and Appender::setLayout().

uint getMask  )  [inline]
 

Return the fingerprint for this class

Reimplemented from FileAppender.

Definition at line 118 of file RollingFileAppender.d.

char [] getName  )  [inline]
 

Return the name of this class

Reimplemented from FileAppender.

Definition at line 129 of file RollingFileAppender.d.

synchronized void append Event  event  )  [inline]
 

Append an event to the output.

Reimplemented from FileAppender.

Definition at line 140 of file RollingFileAppender.d.

References IWriter::cr(), IWriter::flush(), maxSize, nextFile(), and IWriter::put().

void nextFile  )  [inline, private]
 

Switch to the next file within the set

Definition at line 161 of file RollingFileAppender.d.

References paths, and FileAppender::setConduit().

Referenced by append().

this char[]  path  )  [inline, inherited]
 

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

Definition at line 81 of file FileAppender.d.

References FileAppender::setConduit().

this char[]  path,
Layout  layout
[inline, inherited]
 

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

Definition at line 93 of file FileAppender.d.

References Appender::setLayout().

IConduit getConduit  )  [inline, inherited]
 

Return the conduit

Definition at line 116 of file FileAppender.d.

IWriter setConduit IConduit  conduit  )  [inline, inherited]
 

Set the conduit

Definition at line 127 of file FileAppender.d.

References FileAppender::close(), and DisplayWriter.

Referenced by nextFile(), and FileAppender::this().

synchronized void close  )  [inline, inherited]
 

Close the file associated with this Appender

Reimplemented from Appender.

Definition at line 176 of file FileAppender.d.

References IResource::close().

Referenced by FileAppender::setConduit(), and FileAppender::~this().


Member Data Documentation

uint mask [static, private]
 

Reimplemented from FileAppender.

Definition at line 54 of file RollingFileAppender.d.

FilePath [] paths [private]
 

Definition at line 55 of file RollingFileAppender.d.

Referenced by nextFile().

uint index [private]
 

Definition at line 56 of file RollingFileAppender.d.

IWriter writer [private]
 

Reimplemented from FileAppender.

Definition at line 57 of file RollingFileAppender.d.

ulong maxSize [private]
 

Definition at line 58 of file RollingFileAppender.d.

Referenced by append(), and this().

ulong fileSize [private]
 

Definition at line 58 of file RollingFileAppender.d.


The documentation for this class was generated from the following file:
Generated on Sun Oct 24 22:31:30 2004 for Mango by doxygen 1.3.6