OpenSDN source code
Logging Class Reference

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...
 

Detailed Description

A class providing basic control over logging capabilities in OpenSDN control plane.

Definition at line 43 of file logging.h.

Constructor & Destructor Documentation

◆ Logging()

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::~Logging ( )

Destroys the object and shutdowns the logging system.

Definition at line 28 of file logging.cc.

Member Function Documentation

◆ Init() [1/3]

void Logging::Init ( )

Performs basic initialization of the logging system ( log4cplus).

Definition at line 31 of file logging.cc.

Here is the call graph for this function:

◆ Init() [2/3]

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.

Here is the call graph for this function:

◆ Init() [3/3]

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.

Here is the call graph for this function:

Member Data Documentation

◆ initializer_

log4cplus::Initializer Logging::initializer_
private

A log4cplus object to maintain multi- and singlethreaded execution of the logging library.

Definition at line 47 of file logging.h.


The documentation for this class was generated from the following files: