[#BloombergLP-ball-LoggerManager-isCategoryEnabled]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::isCategoryEnabled
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `severity` is more severe (i&period;e&period;, is numerically less than) at least one of the threshold levels of the specified `category`, and `false` otherwise&period; If the returned `value` is `false`, then a subsequent call to `getLogger()&period;logMessage()` (with `category` and `severity`) will have no effect&period; This method compares `severity` with the threshold levels determined by combining `category&hyphen;&gt;thresholdLevels()` with the thresholds provided by any relevant and active logging rules (in `ruleSet()`) that apply to `category`&period; Note that a rule applies to `category` if the rule&apos;s pattern matches `category&hyphen;&gt;categoryName()`, and a rule is active if all the predicates defined for that rule are satisfied by the current thread&apos;s attributes (i&period;e&period;, `Rule&colon;&colon;evaluate()` returns `true` for the collection of attributes maintained by the current thread&apos;s `AttributeContext` object)&period;

== Synopsis

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isCategoryEnabled(
    xref:BloombergLP/ball/Category.adoc[Category] const* category,
    int severity) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
