Search Results for

    Show / Hide Table of Contents
    View Source

    Class SerilogLogViewerSourceBase

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Logging.Viewer
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class SerilogLogViewerSourceBase : ILogViewer

    Constructors

    View Source

    SerilogLogViewerSourceBase(ILogViewerConfig, ILogger)

    Declaration
    protected SerilogLogViewerSourceBase(ILogViewerConfig logViewerConfig, ILogger serilogLog)
    Parameters
    Type Name Description
    ILogViewerConfig logViewerConfig
    ILogger serilogLog
    View Source

    SerilogLogViewerSourceBase(ILogViewerConfig, ILogLevelLoader, ILogger)

    Declaration
    protected SerilogLogViewerSourceBase(ILogViewerConfig logViewerConfig, ILogLevelLoader logLevelLoader, ILogger serilogLog)
    Parameters
    Type Name Description
    ILogViewerConfig logViewerConfig
    ILogLevelLoader logLevelLoader
    ILogger serilogLog

    Properties

    View Source

    CanHandleLargeLogs

    Declaration
    public abstract bool CanHandleLargeLogs { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    View Source

    AddSavedSearch(String, String)

    Declaration
    public virtual IReadOnlyList<SavedLogSearch>? AddSavedSearch(string name, string query)
    Parameters
    Type Name Description
    System.String name
    System.String query
    Returns
    Type Description
    System.Nullable<IReadOnlyList<SavedLogSearch>>
    View Source

    CheckCanOpenLogs(LogTimePeriod)

    Declaration
    public abstract bool CheckCanOpenLogs(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    System.Boolean
    View Source

    DeleteSavedSearch(String, String)

    Declaration
    public virtual IReadOnlyList<SavedLogSearch>? DeleteSavedSearch(string name, string query)
    Parameters
    Type Name Description
    System.String name
    System.String query
    Returns
    Type Description
    System.Nullable<IReadOnlyList<SavedLogSearch>>
    View Source

    GetLogLevel()

    Get the Serilog minimum-level value from the config file.

    Declaration
    public string GetLogLevel()
    Returns
    Type Description
    System.String
    View Source

    GetLogLevelCounts(LogTimePeriod)

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

    GetLogLevels()

    Get the Serilog minimum-level and UmbracoFile-level values from the config file.

    Declaration
    public ReadOnlyDictionary<string, LogEventLevel?> GetLogLevels()
    Returns
    Type Description
    System.Collections.ObjectModel.ReadOnlyDictionary<System.String, System.Nullable<LogEventLevel>>
    View Source

    GetLogs(LogTimePeriod, Int32, Int32, Direction, String, String[])

    Declaration
    public PagedResult<LogMessage> GetLogs(LogTimePeriod logTimePeriod, int pageNumber = 1, int pageSize = 100, Direction orderDirection = Direction.Descending, string filterExpression = null, string[] logLevels = null)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    System.Int32 pageNumber
    System.Int32 pageSize
    Direction orderDirection
    System.String filterExpression
    System.String[] logLevels
    Returns
    Type Description
    PagedResult<LogMessage>
    View Source

    GetLogs(LogTimePeriod, ILogFilter, Int32, Int32)

    Get all logs from your chosen data source back as Serilog LogEvents

    Declaration
    protected abstract IReadOnlyList<LogEvent> GetLogs(LogTimePeriod logTimePeriod, ILogFilter filter, int skip, int take)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    ILogFilter filter
    System.Int32 skip
    System.Int32 take
    Returns
    Type Description
    IReadOnlyList<LogEvent>
    View Source

    GetMessageTemplates(LogTimePeriod)

    Declaration
    public IEnumerable<LogTemplate> GetMessageTemplates(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    IEnumerable<LogTemplate>
    View Source

    GetNumberOfErrors(LogTimePeriod)

    Declaration
    public int GetNumberOfErrors(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    System.Int32
    View Source

    GetSavedSearches()

    Declaration
    public virtual IReadOnlyList<SavedLogSearch>? GetSavedSearches()
    Returns
    Type Description
    System.Nullable<IReadOnlyList<SavedLogSearch>>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SerilogLogViewerSourceBase(ILogViewerConfig, ILogger)
      • SerilogLogViewerSourceBase(ILogViewerConfig, ILogLevelLoader, ILogger)
    • Properties
      • CanHandleLargeLogs
    • Methods
      • AddSavedSearch(String, String)
      • CheckCanOpenLogs(LogTimePeriod)
      • DeleteSavedSearch(String, String)
      • GetLogLevel()
      • GetLogLevelCounts(LogTimePeriod)
      • GetLogLevels()
      • GetLogs(LogTimePeriod, Int32, Int32, Direction, String, String[])
      • GetLogs(LogTimePeriod, ILogFilter, Int32, Int32)
      • GetMessageTemplates(LogTimePeriod)
      • GetNumberOfErrors(LogTimePeriod)
      • GetSavedSearches()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX