[#BloombergLP-ball-Administration-setAllThresholdLevels] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Administration.adoc[Administration]::setAllThresholdLevels :relfileprefix: ../../../ :mrdocs: Set default and existing category threshold levels. == Synopsis Declared in `<ball_administration.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int setAllThresholdLevels( int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel); ---- == Description Set _both_ the default threshold levels and threshold levels of all currently existing categories to the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` values, respectively, if each of the level values is in the range `[0 .. 255]`. Return 0 on success, and a negative value otherwise (with no effect on the default threshold levels). The behavior is undefined unless the logger manager singleton has been initialized and is not in the process of being shut down. == Return Value 0 on success, and a negative value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *recordLevel* | record threshold level to set | *passLevel* | pass threshold level to set | *triggerLevel* | trigger threshold level to set | *triggerAllLevel* | trigger‐all threshold level to set |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#