BloombergLP::ball::Log::isCategoryEnabled

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

NameDescription
categoryHoldercategory holder whose thresholds are tested
severityseverity level to test for enablement