SBCLogManager Class Reference

The class SBCLogManager is dedicated to logging events handling.

Public Member Functions

void reset ()
 Clean up.
 
void save ()
 
void setupRootDir (const std::string &rootDir)
 
std::string getRootDir ()
 
SBCLogEventCollectiongetCurrentLogEventCollection ()
 Returns the SBCLogEventCollection where logging events are stored.
 

Singleton access

static SBCLogManagerinstance ()
 Returns the unique instance of event manager.
 
void addEvent (SBCLogEvent::Type eventLevel, const std::string &filename, const std::string &functionName, const std::string &lineNumber, const std::string &descriptionMessage, const std::string &uuid)
 Method formating and storing event raw data. More...
 
void addEvent (SBCLogEvent *event)
 
void display ()
 Methods relative to event display. More...
 
void reDisplay ()
 Useful if one wants to display again after having changed display configuration.
 

Member Function Documentation

◆ addEvent()

void SBCLogManager::addEvent ( SBCLogEvent::Type  eventLevel,
const std::string &  filename,
const std::string &  functionName,
const std::string &  lineNumber,
const std::string &  descriptionMessage,
const std::string &  uuid 
)
Parameters
eventLevelevent level.
filenamefile where event occured.
functionNamefunction where event occured.
lineNumberline where event occured.
descriptionMessagedescription message of the event.
uuidUUID.

◆ display()

void SBCLogManager::display ( )

Display method.