Search Results for

    Show / Hide Table of Contents
    View Source

    Class LogViewerRepository

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Services.Implement
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class LogViewerRepository : ILogViewerRepository

    Constructors

    View Source

    LogViewerRepository(ILoggingConfiguration, ILogger<LogViewerRepository>, IJsonSerializer, UmbracoFileConfiguration)

    Declaration
    public LogViewerRepository(ILoggingConfiguration loggingConfiguration, ILogger<LogViewerRepository> logger, IJsonSerializer jsonSerializer, UmbracoFileConfiguration umbracoFileConfig)
    Parameters
    Type Name Description
    ILoggingConfiguration loggingConfiguration
    ILogger<LogViewerRepository> logger
    IJsonSerializer jsonSerializer
    UmbracoFileConfiguration umbracoFileConfig

    Methods

    View Source

    GetGlobalMinLogLevel()

    Gets the minimum-level log value from the config file.

    Declaration
    public LogLevel GetGlobalMinLogLevel()
    Returns
    Type Description
    LogLevel
    View Source

    GetLogCount(LogTimePeriod)

    Returns the number of the different log level entries.

    Declaration
    public LogLevelCounts GetLogCount(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    LogLevelCounts
    View Source

    GetLogs(LogTimePeriod, String)

    Declaration
    public IEnumerable<ILogEntry> GetLogs(LogTimePeriod logTimePeriod, string filterExpression = null)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    System.String filterExpression
    Returns
    Type Description
    IEnumerable<ILogEntry>
    View Source

    GetMessageTemplates(LogTimePeriod)

    Returns a list of all unique message templates and their counts.

    Declaration
    public LogTemplate[] GetMessageTemplates(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    LogTemplate[]
    View Source

    RestrictedToMinimumLevel()

    Declaration
    public LogLevel RestrictedToMinimumLevel()
    Returns
    Type Description
    LogLevel
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • LogViewerRepository(ILoggingConfiguration, ILogger<LogViewerRepository>, IJsonSerializer, UmbracoFileConfiguration)
    • Methods
      • GetGlobalMinLogLevel()
      • GetLogCount(LogTimePeriod)
      • GetLogs(LogTimePeriod, String)
      • GetMessageTemplates(LogTimePeriod)
      • RestrictedToMinimumLevel()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX