Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    GetGlobalMinLogLevel()

    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 null if not set.

    View Source

    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 null if not set.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX