Skip to main content

SetConfig

Sets global logger config

def SetConfig(
cfg: *Config
) - > error

Sets the global logger configuration. This function updates the logger's settings and triggers an update event for the new configuration.

Parameters

NameTypeDescription
cfg*ConfigThe new configuration object to apply to the global logger.

Returns

TypeDescription
errorAn error if the configuration cannot be set, otherwise nil.