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

Return the specified `categoryHolder` if the severity warrants logging according to the specified `t&lowbar;SEVERITY` and `categoryHolder`, and 0 otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;int t&lowbar;SEVERITY&gt;
static
xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder] const*
categoryHolderIfEnabled(xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder] const* categoryHolder);
----


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