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
| Name | Type | Description |
|---|---|---|
| cfg | *Config | The new configuration object to apply to the global logger. |
Returns
| Type | Description |
|---|---|
error | An error if the configuration cannot be set, otherwise nil. |