Interface ILogLevelLoader
Represents an interface for loading log level configuration settings.
Namespace: Umbraco.Cms.Core.Logging.Viewer
Assembly: Umbraco.Infrastructure.dll
Syntax
[Obsolete("Use ILogViewerService instead. Scheduled for removal in Umbraco 15.")]
public interface ILogLevelLoader
Methods
View SourceGetGlobalMinLogLevel()
Gets the global Serilog minimum log level value from the configuration file.
Declaration
LogEventLevel? GetGlobalMinLogLevel()
Returns
| Type | Description |
|---|---|
| LogEventLevel? | The globally configured minimum Serilog.Events.LogEventLevel, or |
GetLogLevelsFromSinks()
Retrieves the configured Serilog log event levels for each log sink, including the global minimum and UmbracoFile sinks, from the configuration file.
Declaration
ReadOnlyDictionary<string, LogEventLevel?> GetLogLevelsFromSinks()
Returns
| Type | Description |
|---|---|
| ReadOnlyDictionary<string, LogEventLevel?> | A read-only dictionary mapping sink names to their corresponding Serilog log event levels, or |