Class SBCLogEventCollection#
ClassList > SBCLogEventCollection
LogEvent storage. More...
#include "SBCLogEventCollection.hpp"
Public Functions#
Type | Name |
---|---|
SBCLogEventCollection (const std::string & filename) |
|
SBCLogEventCollection () |
|
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 | display () Display method. |
std::vector< SBCLogEvent * > * | getEvents () Returns event date. |
void | load (const std::string & filename, bool binary=true) Load the logEvent collection. |
void | reDisplay () Useful if one wants to display again after having changed display configuration. |
void | reset () |
void | save (const std::string & filename, bool binary=true) const Save the logEvent collection. |
void | setDisplayConfig (bool printTime, bool printLocation) |
void | setEvents (std::vector< SBCLogEvent * > * vector) Sets event date. |
virtual | ~SBCLogEventCollection () |
Detailed Description#
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.
Public Functions Documentation#
function SBCLogEventCollection [1/2]#
function SBCLogEventCollection [2/2]#
function addEvent [1/2]#
void SBCLogEventCollection::addEvent (
SBCLogEvent::Type eventLevel,
const std::string & filename,
const std::string & functionName,
const std::string & lineNumber,
const std::string & descriptionMessage,
const std::string & uuid
)
function addEvent [2/2]#
function display#
Display method.
function getEvents#
Returns event date.
function load#
Load the logEvent collection.
function reDisplay#
Useful if one wants to display again after having changed display configuration.
function reset#
function save#
Save the logEvent collection.
function setDisplayConfig#
Parameters:
printTime
boolean set to true to print the date.printLocation
boolean set to true to print File/Line information.
function setEvents#
Sets event date.