plumbing::logging_file Class Reference
#include <file.h>
Detailed Description
The plumbing::logging_file class is used to represent a logging destination which is a file.
The file will be closed and reopened periodically to facilitate logrotate(8) and friends.
Definition at line 35 of file file.h.
Constructor & Destructor Documentation
plumbing::logging_file::~logging_file |
( |
|
) |
[virtual] |
The destructor.
Definition at line 28 of file file.cc.
plumbing::logging_file::logging_file |
( |
const std::string & |
filename |
) |
|
The constructor.
- Parameters:
-
| filename | the name of the file which is to receive the logging data. |
Definition at line 39 of file file.cc.
plumbing::logging_file::logging_file |
( |
|
) |
[private] |
The default constructor. Do not use.
plumbing::logging_file::logging_file |
( |
const logging_file & |
|
) |
[private] |
The copy constructor. Do not use.
Member Function Documentation
void plumbing::logging_file::deliver_message_text |
( |
const char * |
txt |
) |
[protected, virtual] |
The deliver_message_text method is used to actually deliver a log message to the logging medium. All formatting has been completed, the text requires no further substitutions.
Implements plumbing::logging.
Definition at line 49 of file file.cc.
The assignment operator. Do not use.
Field Documentation
The filename isntance variable is sued to rememeber the name of the file which is to receive the logging data.
Definition at line 61 of file file.h.
The since instance variable is used to remember the time we last opened the file. This is used when deciding whether or not to close and reopen the file, to make logrotate(8) easy.
Definition at line 78 of file file.h.
The vfp instance variable is used to remember the open file. It will be NULL when the file is not open.
- Note:
- The only reason it's a void* and not a FILE* is to avoid sucking in stdio.h
Definition at line 71 of file file.h.
The documentation for this class was generated from the following files: