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

Return whether logging is enabled for the category at the severity&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isCategoryEnabled(
    xref:BloombergLP/ball/CategoryHolder.adoc[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&colon;&colon;e&lowbar;WARN &gt;&equals; severity` and the logger manager singleton is not initialized&semi; return `false` otherwise&period;

== Return Value

`true` if logging is enabled, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *categoryHolder*
| category holder whose thresholds are tested
| *severity*
| severity level to test for enablement
|===


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