Return whether logging is enabled for the category at the severity.

Synopsis

Declared in <ball_log.h>

static
bool
isCategoryEnabled(
    CategoryHolder const* categoryHolder,
    int severity);

Description

Return true if logging to the category associated with the specified categoryHolder at the specified severity is enabled, or if Severity::e_WARN >= severity and the logger manager singleton is not initialized; return false otherwise.

Return Value

true if logging is enabled, and false otherwise

Parameters

Name

Description

categoryHolder

category holder whose thresholds are tested

severity

severity level to test for enablement

Created with MrDocs