[#BloombergLP-ball-LoggerManagerConfiguration-setDefaultThresholdLevelsIfValid-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManagerConfiguration.adoc[LoggerManagerConfiguration]::setDefaultThresholdLevelsIfValid
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

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

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

== Description

Set the quadruplet of default severity threshold level attributes of the `LoggerManagerDefaults` attribute of this object to the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` values if each level is in the range `&lsqb;0 &period;&period; 255&rsqb;`&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
| *recordLevel*
| candidate default record threshold level
| *passLevel*
| candidate default pass&hyphen;through threshold level
| *triggerLevel*
| candidate default trigger threshold level
| *triggerAllLevel*
| candidate default trigger&hyphen;all threshold level
|===


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