15 void setLoggerCallback(
LoggerCallback* callback) { loggerCallback = callback; }
25 virtual void consumeMessage(
const char* source,
Category category, uint32_t errorNumber,
const char* message,
const char* filename,
int lineNumber)
override;
Consumer is the base class for objects that want to consume log messages through the LogManager.
RedirectedLogger is a message consumer that forwards any incoming message to the callback functions r...
Contains logging functionality for the Cogs native library.
void(const char *message, const char *source, int category) LoggerCallback
Definition of logging callback.
void consumeMessage(const char *source, Category category, uint32_t errorNumber, const char *filename, int lineNumber, _Printf_format_string_ const char *fmt, va_list argptr)
Forwards the incoming log message to all interested consumers.
void(const char *file, int line, const char *message, const char *source, int category) FileLineLoggerCallback
Definition of logging callback including file and line information.
Category
Logging categories used to filter log messages.