OpcUaCanOpen
CANopen OPC-UA server
LogRecord Class Reference

#include <LogRecord.h>

Public Member Functions

SHARED_LIB_EXPORT_DEFN LogRecord (const std::string &file, const int &line, const Log::LOG_LEVEL &level)
 
SHARED_LIB_EXPORT_DEFN LogRecord (const std::string &file, const int &line, const Log::LOG_LEVEL &level, const Log::LogComponentHandle &componentHandle)
 
SHARED_LIB_EXPORT_DEFN LogRecord (const std::string &file, const int &line, const Log::LOG_LEVEL &level, const std::string &componentName)
 
virtual SHARED_LIB_EXPORT_DEFN ~LogRecord ()
 
SHARED_LIB_EXPORT_DEFN std::ostream & getStream ()
 

Private Member Functions

std::ostringstream & initializeStream (const std::string &file, const int &line, const Log::LOG_LEVEL &level)
 

Static Private Member Functions

static const std::string stripDirectory (const std::string &file)
 

Private Attributes

std::ostringstream m_stream
 

Detailed Description

Definition at line 30 of file LogRecord.h.

Constructor & Destructor Documentation

◆ LogRecord() [1/3]

SHARED_LIB_EXPORT_DEFN LogRecord::LogRecord ( const std::string &  file,
const int &  line,
const Log::LOG_LEVEL level 
)

◆ LogRecord() [2/3]

SHARED_LIB_EXPORT_DEFN LogRecord::LogRecord ( const std::string &  file,
const int &  line,
const Log::LOG_LEVEL level,
const Log::LogComponentHandle componentHandle 
)

◆ LogRecord() [3/3]

LogRecord::LogRecord ( const std::string &  file,
const int &  line,
const Log::LOG_LEVEL level,
const std::string &  componentName 
)

Definition at line 53 of file LogRecord.cpp.

◆ ~LogRecord()

LogRecord::~LogRecord ( )
virtual

Definition at line 58 of file LogRecord.cpp.

Member Function Documentation

◆ getStream()

std::ostream & LogRecord::getStream ( )

Definition at line 71 of file LogRecord.cpp.

◆ initializeStream()

std::ostringstream & LogRecord::initializeStream ( const std::string &  file,
const int &  line,
const Log::LOG_LEVEL level 
)
private

Definition at line 64 of file LogRecord.cpp.

◆ stripDirectory()

const string LogRecord::stripDirectory ( const std::string &  file)
staticprivate

Definition at line 76 of file LogRecord.cpp.

Member Data Documentation

◆ m_stream

std::ostringstream LogRecord::m_stream
private

Definition at line 44 of file LogRecord.h.


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