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

In case the specified `categoryNamePrefix` is not empty set the threshold levels of every existing and future category whose name has, as a prefix, `categoryNamePrefix` to the specified threshold values, `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel`&period; In case `categoryNamePrefix` is empty set the threshold level of every existing category, and remove all preliminary settings (for future categories)&period; Return the number of categories whose threshold levels were set, or a negative value, with no effect, if any of the specified threshold values is outside the range `&lsqb;0 &period;&period; 255&rsqb;`&period; See also `ball&colon;&colon;CategoryManager&colon;&colon;setThresholdLevelsHierarchically`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setThresholdLevelsHierarchically(
    char const* categoryNamePrefix,
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);
----


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