|
VICI
0.11.815
Visual Chart Interpreter
|
Class for logging to a file. More...
#include <vici/log.h>
Public Member Functions | |
| FileLogger (const Path &fname) | |
| Constructor. More... | |
| int | log (Severity, csr line) |
| log to the unnamed log More... | |
| int | log (csr logName, Severity, csr line) |
| log to the named log More... | |
Public Member Functions inherited from VICI::cfi::logger | |
| virtual | ~logger () |
| Destructor. | |
Protected Attributes | |
| std::ofstream | f |
| The logging stream. | |
Protected Attributes inherited from VICI::cfi::logger | |
| Semaphore | sem4 |
| Mutual exclusion lock. | |
Additional Inherited Members | |
Protected Member Functions inherited from VICI::cfi::FormattingLogger | |
| std::string | timeStamp () |
| generates a string containing the current time More... | |
| csr | hostname () |
| generates a string containing the hostname. | |
| csr | process () |
| generates a string containing the process id | |
| csr | severity (Severity) |
| generates a string containing the severity level | |
| int | format (std::ostream &s, Severity sev, csr msg) |
| output the message to the stream More... | |
Protected Member Functions inherited from VICI::cfi::logger | |
| logger () | |
| Constructor. | |
Class for logging to a file.
Writes log messages to a file.
The log messages include the output from the FormattingLogger.
| FileLogger::FileLogger | ( | const Path & | fname | ) |
Constructor.
| fname | the name of the log file. |
log to the unnamed log
| sev | the severity level for the message |
| line | the message to place in the log |
Implements VICI::cfi::logger.
log to the named log
| logName | the name of the log stream to write to |
| sev | the severity level for the message |
| line | the message to place in the log |
Implements VICI::cfi::logger.
1.8.5