[#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_SEVERITY` and `categoryHolder`, and 0 otherwise. == Synopsis Declared in `<ball_log.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<int t_SEVERITY> static xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder] const* categoryHolderIfEnabled(xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder] const* categoryHolder); ---- == Return Value `categoryHolder` if logging is warranted, and 0 otherwise == Parameters [cols="1,4"] |=== | Name| Description | *categoryHolder* | category holder to test for logging enablement |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#