OpcUaCanOpen
CANopen OPC-UA server
LogSinkInterface Class Referenceabstract

#include <LogSinkInterface.h>

Inherited by BoostRotatingFileLog, StdOutLog, and UaTraceSink.

Public Member Functions

 LogSinkInterface ()
 
virtual ~LogSinkInterface ()
 
virtual bool initialize ()=0
 Expected to be called once on initialization. More...
 
virtual void logMessage (const std::string &msg)=0
 Expected to be called often, sends msg to logger backend. More...
 

Detailed Description

Definition at line 27 of file LogSinkInterface.h.

Constructor & Destructor Documentation

◆ LogSinkInterface()

LogSinkInterface::LogSinkInterface ( )
inline

Definition at line 30 of file LogSinkInterface.h.

◆ ~LogSinkInterface()

virtual LogSinkInterface::~LogSinkInterface ( )
inlinevirtual

Definition at line 31 of file LogSinkInterface.h.

Member Function Documentation

◆ initialize()

virtual bool LogSinkInterface::initialize ( )
pure virtual

Expected to be called once on initialization.

returns true if initialization successful, otherwise false

Implemented in UaTraceSink, BoostRotatingFileLog, and StdOutLog.

◆ logMessage()

virtual void LogSinkInterface::logMessage ( const std::string &  msg)
pure virtual

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

Implemented in UaTraceSink, BoostRotatingFileLog, and StdOutLog.


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