#include <BLogger.h>
Public Member Functions | |
void | log (LogLevel level, const char *format,...) |
Log a message, printf() style. | |
void | setLogLevel (LogLevel level) |
Set the maximum log level. | |
void | addLogger (BLogger *logger) |
Add a new logger to the system's list. | |
void | setWakeOnLog (bool wakeOnLog) |
Set whether to wake up the screen saver on log entry. | |
bool | wakesOnLog () |
Return whether the screen saver will be woken up on log entry. | |
void | setScreenSaverResetFunction (void(*fn)(void *), void *arg) |
Set the screensaver callback function. | |
Static Public Member Functions | |
BLoggerManager * | get () |
Return the single instance of BLoggerManager. |
BLoggerManager maintains a maximum log level; all log output above that level (i.e. less critical) will be suppressed.
BLoggerManager maintains a list of loggers that can be added to; one default logger of class BStdoutLogger is always there. Log messages that go to BLoggerManager and that are not suppressed will go to all loggers in the list.
BLoggerManager can be set to wake up the screen saver (using a custom call back method) upon receiving new, non-suppressed entries.
|
Set the maximum log level. All log output above this level (i.e. less critical) will be suppressed. |
|
Set the screensaver callback function. If wakesOnLog() is true, this method will be called upon receiving new, non-suppressed log entries. |