init::SetLoggingLevel

Sets the global logging severity level selected by the arguments.

Synopsis

Declared in <init/common.h>

[[nodiscard]]
util::Result<void>
SetLoggingLevel(ArgsManager const& args);

Return Value

A successful result, or an error describing an invalid level.

NOTE

The return value should not be discarded.

Parameters

NameDescription
argsThe parsed program arguments to read the logging level from.