32 minimumCategory = category;
40 defaultMinimumCategory = category;
47 constexpr const char* categoryNames[] = {
56 return categoryNames[
static_cast<int>(category)];
59const char* Cogs::Logging::Consumer::getCategoryNameColor(
Category category) {
60 constexpr const char* categoryNames[] = {
64 "\033[33mWarning\033[0m",
65 "\033[31mError\033[0m",
66 "\033[31mFatal\033[0m"
69 return categoryNames[
static_cast<int>(category)];
static const char * getCategoryName(Category category)
Retrieves a human-friendly name for the given category level.
virtual ~Consumer()
Unregisters this consumer from the LogManager and destroys this instance.
void setMinimumCategory(Category category)
Set the minimum category level of messages that this consumer will output.
static void setDefaultMinimumCategory(Category category)
Sets the default minimum category for all future consumers.
Consumer()
Constructs a new Consumer instance.
void COGSFOUNDATION_API registerConsumer(Consumer *consumer)
Registers the specified consumer with the LogManager.
Category
Logging categories used to filter log messages.
void updateMinimumCategory()
Internal.
void COGSFOUNDATION_API unregisterConsumer(Consumer *consumer)
Removes the specified consumer from the LogManager.