[#BloombergLP-ball-LoggerManagerDefaults-setDefaultThresholdLevelsIfValid-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManagerDefaults.adoc[LoggerManagerDefaults]::setDefaultThresholdLevelsIfValid
:relfileprefix: ../../../
:mrdocs:

`setDefaultThresholdLevelsIfValid` overloads

== Synopses

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

Set the pass threshold level if valid, and zero the other levels&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/ball/LoggerManagerDefaults/setDefaultThresholdLevelsIfValid-0c.adoc[setDefaultThresholdLevelsIfValid](int passLevel);
----

[.small]#xref:BloombergLP/ball/LoggerManagerDefaults/setDefaultThresholdLevelsIfValid-0c.adoc[_» more&period;&period;&period;_]#

Set the four default severity threshold levels if each is valid&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/ball/LoggerManagerDefaults/setDefaultThresholdLevelsIfValid-00.adoc[setDefaultThresholdLevelsIfValid](
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);
----

[.small]#xref:BloombergLP/ball/LoggerManagerDefaults/setDefaultThresholdLevelsIfValid-00.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

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


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