LogEvent storage. More...
Public Member Functions | |
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) |
void | addEvent (SBCLogEvent *event) |
void | reset () |
Clean up. | |
Constructors and destructor | |
SBCLogEventCollection (const std::string &filename) | |
SBCLogEventCollection () | |
virtual | ~SBCLogEventCollection () |
Save / Load | |
void | save (const std::string &filename, bool binary=true) const |
Save the logEvent collection. | |
void | load (const std::string &filename, bool binary=true) |
Load the logEvent collection. | |
Accessors | |
std::vector< SBCLogEvent *> * | getEvents () |
Returns event date. | |
void | setEvents (std::vector< SBCLogEvent * > *) |
Sets event date. | |
void | display () |
Methods relative to event display. More... | |
void | reDisplay () |
Useful if one wants to display again after having changed display configuration. | |
void | setDisplayConfig (bool printTime, bool printLocation) |
Every program needs to report/handle log conditions. This is done by managing an event stack where messages, with helpful runtime information, are put. A SBCLogEventCollection represent a logging event collection.
void SBCLogEventCollection::display | ( | ) |
Display method.
void SBCLogEventCollection::setDisplayConfig | ( | bool | printTime, |
bool | printLocation | ||
) |
printTime | boolean set to true to print the date. |
printLocation | boolean set to true to print File/Line information. |