[#BloombergLP-ball-Administration-setDefaultThresholdLevels]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Administration.adoc[Administration]::setDefaultThresholdLevels
:relfileprefix: ../../../
:mrdocs:

Set the default threshold levels&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
setDefaultThresholdLevels(
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);
----

== Description

Set the default threshold levels to the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` values, respectively, if each of the level values is in the range `&lsqb;0 &period;&period; 255&rsqb;`&period; Return 0 on success, and a negative value otherwise (with no effect on the default threshold levels)&period; The behavior is undefined unless the logger manager singleton has been initialized and is not in the process of being shut down&period;

== Return Value

0 on success, and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *recordLevel*
| default record threshold level
| *passLevel*
| default pass threshold level
| *triggerLevel*
| default trigger threshold level
| *triggerAllLevel*
| default trigger&hyphen;all threshold level
|===


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