OpcUaCanOpen
CANopen OPC-UA server
BoostRotatingFileLog Class Reference

#include <BoostRotatingFileLog.h>

Inherits LogSinkInterface.

Public Member Functions

virtual bool initialize ()
 Expected to be called once on initialization. More...
 
virtual void logMessage (const std::string &msg)
 Expected to be called often, sends msg to logger backend. More...
 
- Public Member Functions inherited from LogSinkInterface
 LogSinkInterface ()
 
virtual ~LogSinkInterface ()
 

Private Member Functions

void addFileSink ()
 

Private Attributes

boost::log::sources::logger_mt m_boostLogger
 

Detailed Description

Definition at line 29 of file BoostRotatingFileLog.h.

Member Function Documentation

◆ addFileSink()

void BoostRotatingFileLog::addFileSink ( )
private

Definition at line 68 of file BoostRotatingFileLog.cpp.

◆ initialize()

bool BoostRotatingFileLog::initialize ( )
virtual

Expected to be called once on initialization.

returns true if initialization successful, otherwise false

Implements LogSinkInterface.

Definition at line 49 of file BoostRotatingFileLog.cpp.

◆ logMessage()

void BoostRotatingFileLog::logMessage ( const std::string &  msg)
virtual

Expected to be called often, sends msg to logger backend.

Implements LogSinkInterface.

Definition at line 55 of file BoostRotatingFileLog.cpp.

Member Data Documentation

◆ m_boostLogger

boost::log::sources::logger_mt BoostRotatingFileLog::m_boostLogger
private

Definition at line 37 of file BoostRotatingFileLog.h.


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