#include <file.h>
Public Member Functions | |
virtual | ~logging_file () |
logging_file (const std::string &filename) | |
Protected Member Functions | |
void | deliver_message_text (const char *txt) |
Private Member Functions | |
logging_file () | |
logging_file (const logging_file &) | |
logging_file & | operator= (const logging_file &) |
Private Attributes | |
std::string | filename |
void * | vfp |
time_t | since |
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.
virtual plumbing::logging_file::~logging_file | ( | ) | [virtual] |
The destructor.
plumbing::logging_file::logging_file | ( | const std::string & | filename | ) |
The constructor.
filename | the name of the file which is to receive the logging data. |
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.
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.
logging_file& plumbing::logging_file::operator= | ( | const logging_file & | ) | [private] |
The assignment operator. Do not use.
std::string plumbing::logging_file::filename [private] |
time_t plumbing::logging_file::since [private] |
void* plumbing::logging_file::vfp [private] |