[#init-SetLoggingLevel]
= xref:init.adoc[init]::SetLoggingLevel
:relfileprefix: ../
:mrdocs:

Sets the global logging severity level selected by the arguments&period;

== Synopsis

Declared in `&lt;init&sol;common&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;void&gt;]
SetLoggingLevel(xref:ArgsManager.adoc[ArgsManager] const& args);
----

== Return Value

A successful result, or an error describing an invalid level&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| The parsed program arguments to read the logging level from&period;
|===


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