Vault
4.1
|
Not yet implemented. More...
#include <vlogger.h>
Public Member Functions | |
VRollingFileLogAppender (const VString &name, bool formatOutput, const VString &formatSpec, const VString &timeFormat, const VString &dirPath, const VString &fileNamePrefix, int maxNumLines) | |
VRollingFileLogAppender (const VSettingsNode &settings, const VSettingsNode &defaults) | |
virtual void | addInfo (VBentoNode &infoNode) const |
For diagnostic purposes, adds the properties/state of this appender to the supplied Bento node. | |
Protected Member Functions | |
virtual void | _emitRawLine (const VString &line) |
This is the method that most concrete appenders must implement in order to write a message (whether it is in raw form or has already been formatted) to the output medium. |
Not yet implemented.
An appender that emits to rolling log files. It will define several properties to control the limits on log file size and the lifecycle for cleaning up "old" files. I plan to define a class that has a global housekeeping object which all rolling file appenders register with, to indicate their file patterns, directories, lifetimes, and currently in use file. The housekeeper task will periodically remove sufficiently old files as long as they are not currently in use. Another approach might be to only fire a cleaning job upon rollover, since although a file can become old due to the passing of time, if no rollover occurs then there is no growth in the number of files on disk.
void VRollingFileLogAppender::addInfo | ( | VBentoNode & | infoNode | ) | const [virtual] |
For diagnostic purposes, adds the properties/state of this appender to the supplied Bento node.
Concrete classes should call inherited and then add their type-specific info.
infoNode | the Bento node to which to add this appender's properties |
Reimplemented from VLogAppender.
Definition at line 1168 of file vlogger.cpp.
References VBentoNode::addString().
void VRollingFileLogAppender::_emitRawLine | ( | const VString & | ) | [protected, virtual] |
This is the method that most concrete appenders must implement in order to write a message (whether it is in raw form or has already been formatted) to the output medium.
The reason an emty implementation is provided here, rather than it being pure virtual, is that some appenders override _emitMessage() instead because they always bypass formatting.
line | the actual line to be emitted as is (it has already been formatted if that was needed) |
Reimplemented from VLogAppender.
Definition at line 1174 of file vlogger.cpp.