Go to the documentation of this file.
17 for (
const auto log :
logs) {
21 Serial.print(log->getLogID());
22 Serial.println(log->getLogDescription());
#define FORMAT_TIME(time)
Converts a time in milliseconds into a formatted string.
void update() override
Updates the class.
static Logger * getInstance()
Returns the instance of the class.
static Logger * instance
the instance of the class
TimePeriod timePeriod
time period for recognizing when the log should be printed out
int isActive()
Returns information if the period of time has passed.
void addEntity(ILoggable *log)
Adds another class to the logging system.
Logger()
Constructor of the class.
std::vector< ILoggable * > logs
collection of classes that are registered in the logging system