Search Results for

    Show / Hide Table of Contents

    Class SerilogLogViewerSourceBase

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

    Constructors

    SerilogLogViewerSourceBase(ILogViewerConfig, Serilog.ILogger)

    Declaration
    [Obsolete("Please use ctor with all params instead. Scheduled for removal in V11.")]
    protected SerilogLogViewerSourceBase(ILogViewerConfig logViewerConfig, Serilog.ILogger serilogLog)
    Parameters
    Type Name Description
    ILogViewerConfig logViewerConfig
    Serilog.ILogger serilogLog

    SerilogLogViewerSourceBase(ILogViewerConfig, ILogLevelLoader, Serilog.ILogger)

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

    Properties

    CanHandleLargeLogs

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

    Methods

    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.Collections.Generic.IReadOnlyList<SavedLogSearch>

    CheckCanOpenLogs(LogTimePeriod)

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

    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.Collections.Generic.IReadOnlyList<SavedLogSearch>

    GetLogLevel()

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

    Declaration
    [Obsolete("Please use LogLevelLoader.GetGlobalMinLogLevel() instead. Scheduled for removal in V11.")]
    public string GetLogLevel()
    Returns
    Type Description
    System.String

    GetLogLevelCounts(LogTimePeriod)

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

    GetLogLevels()

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

    Declaration
    public ReadOnlyDictionary<string, LogEventLevel> GetLogLevels()
    Returns
    Type Description
    ReadOnlyDictionary<System.String, LogEventLevel>

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

    Declaration
    public PagedResult<LogMessage> GetLogs(LogTimePeriod logTimePeriod, int pageNumber = 1, int pageSize = 100, Direction orderDirection = null, 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>

    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
    System.Collections.Generic.IReadOnlyList<LogEvent>

    GetMessageTemplates(LogTimePeriod)

    Declaration
    public IEnumerable<LogTemplate> GetMessageTemplates(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<LogTemplate>

    GetNumberOfErrors(LogTimePeriod)

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

    GetSavedSearches()

    Declaration
    public virtual IReadOnlyList<SavedLogSearch> GetSavedSearches()
    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<SavedLogSearch>
    In This Article
    • Constructors
      • SerilogLogViewerSourceBase(ILogViewerConfig, Serilog.ILogger)
      • SerilogLogViewerSourceBase(ILogViewerConfig, ILogLevelLoader, Serilog.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