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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setDefaultThresholdLevelsIfValid(int passLevel);
----

== Description

Set the pass&hyphen;through severity threshold level attribute of this object to the specified `passLevel`, if it is in the range `&lsqb;0 &period;&period; 255&rsqb;`, and set all the other threshold levels (`recordLevel`, `triggerLevel`, `triggerAllLevel`) to 0&period; Return 0 on success, and a non&hyphen;zero value otherwise with no effect on this object&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
|===


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