3#include "../Platform/Threads.h"
23 virtual void consumeMessage(
const char* source,
Category category, uint32_t errorNumber,
const char* message,
const char* filename,
int lineNumber) = 0;
25 Category getMinimumCategory()
const {
return minimumCategory; }
26 void setMinimumCategory(
Category category);
28 void enableFilenames(
bool enable) { outputFilenames = enable; }
31 static void setDefaultMinimumCategory(
Category category);
33 static const char* getCategoryName(
Category category);
35 static const char* getCategoryNameColor(
Category category);
39 bool outputFilenames =
false;
43 static Category defaultMinimumCategory;
Consumer is the base class for objects that want to consume log messages through the LogManager.
Mutex mutex
Mutex available for implementations to use if needed.
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.
Category
Logging categories used to filter log messages.
Contains all Cogs related functionality.