log-more > ConfigurationManager
ConfigurationManager classβ
A static class used to manage the log-more configuration data
Signature:export declare class ConfigurationManager
Propertiesβ
Property | Modifiers | Type | Description |
---|---|---|---|
getConfig | static | () => Result<LogMoreConfig> | Get the current log configuration object |
getConfigItem | static | <T>(name: string) => Result<T> | Get an item from the current log configuration object |
getLogEventConfig | static | (type: string) => LogEventConfig | Get the current configuration for a specified log event type |
getLogEventRegistry | static | () => Result<TypedIndexable<LogEventConfig>> | Get all of the current configurations for the defined for log event types |
setConfig | static | (params?: Partial<LogMoreConfig<LogEventConfig<import("./types").ResultConfig<import("@log-more/base").CallbackFunction<unknown, import("@log-more/base").IResult<unknown, any, any>, unknown, import("@log-more/base").IResult<unknown, any, any>>>, import("./types").ReportConfig<import("./types").FormatFunction<unknown, Result<unknown>, import("@log-more/base").FormattedData, import("@log-more/base").Report<import("@log-more/base").FormattedData>, Result<import("@log-more/base").Report<import("@log-more/base").FormattedData>>>, import("./types").CaptureFunction<import("@log-more/base").FormattedData, import("@log-more/base").Report<import("@log-more/base").FormattedData>, unknown, Result<unknown>>, import("./types").ReportFunction<unknown, Result<unknown>, unknown, Result<unknown>>>>, import("@log-more/base").UserConfig>> | undefined) => Result | Set the configuration for how logging should be handled |
setConfigItem | static | <T = unknown>(name: string, value: T) => Result | Set a specific item value on the configuration object |
tryGetLogEventConfig | static | (type: string) => Result<LogEventConfig> | Get the current configuration for a specified log event type |
Methodsβ
Method | Modifiers | Description |
---|---|---|
init(defaultConfig) | static | A function used to initialize the configuration in memory |