|
OpenSDN source code
|
A class providing basic control over logging capabilities in OpenSDN control plane. More...
#include <logging.h>
Public Member Functions | |
| Logging () | |
| Prepares log4cplus library for execution. Uses RAII to free resources after the completion of the program. More... | |
| ~Logging () | |
| Destroys the object and shutdowns the logging system. More... | |
| void | Init () |
| Performs basic initialization of the logging system ( log4cplus). More... | |
| void | Init (const std::string &filename, long maxFileSize, int maxBackupIndex, bool useSyslog, const std::string &syslogFacility, const std::string &ident, log4cplus::LogLevel logLevel) |
| Performs customized initialization of the logging system ( log4cplus) using settings specified as the arguments of the function. More... | |
| void | Init (const std::string &propertyFile) |
| Performs customized initialization of the logging system ( log4cplus) using settings specified in the provided file. More... | |
Private Attributes | |
| log4cplus::Initializer | initializer_ |
| A log4cplus object to maintain multi- and singlethreaded execution of the logging library. More... | |
A class providing basic control over logging capabilities in OpenSDN control plane.
| Logging::Logging | ( | ) |
Prepares log4cplus library for execution. Uses RAII to free resources after the completion of the program.
Definition at line 24 of file logging.cc.
| Logging::~Logging | ( | ) |
Destroys the object and shutdowns the logging system.
Definition at line 28 of file logging.cc.
| void Logging::Init | ( | ) |
Performs basic initialization of the logging system ( log4cplus).
Definition at line 31 of file logging.cc.

| void Logging::Init | ( | const std::string & | filename, |
| long | maxFileSize, | ||
| int | maxBackupIndex, | ||
| bool | useSyslog, | ||
| const std::string & | syslogFacility, | ||
| const std::string & | ident, | ||
| log4cplus::LogLevel | logLevel | ||
| ) |
Performs customized initialization of the logging system ( log4cplus) using settings specified as the arguments of the function.
Definition at line 35 of file logging.cc.

| void Logging::Init | ( | const std::string & | propertyFile | ) |
Performs customized initialization of the logging system ( log4cplus) using settings specified in the provided file.
Definition at line 51 of file logging.cc.

|
private |