Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

sword::LogMediaFileRotate Class Reference

File log media : send the log to a disk file. More...

Inheritance diagram for sword::LogMediaFileRotate:

sword::LogMedia

Public Methods

 LogMediaFileRotate (const std::string &fileName, const std::string &timestampFileFormat, const std::string &timestampFormat)
virtual void onLog (const Log::Entry &entry)
 The method called back each time a log must be sent to this media.

const std::string & name () const
 This media name.


Detailed Description

File log media : send the log to a disk file.

The file name is appeneded with the timestamp when created and a new logfile is automatically created each day at 00:00 (automatic "log rotate" feature)


Member Function Documentation

const std::string& sword::LogMedia::name   const [inherited]
 

This media name.

virtual void sword::LogMediaFileRotate::onLog const Log::Entry &    entry [virtual]
 

The method called back each time a log must be sent to this media.

Implements sword::LogMedia.


Generated on Tue Dec 23 20:08:57 2003 for SWORD by doxygen1.3-rc2