init::SetLoggingCategories

Enables or disables the debug logging categories selected by the arguments.

Synopsis

Declared in <init/common.h>

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

Return Value

A successful result, or an error describing an unknown category.

NOTE

The return value should not be discarded.

Parameters

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