Search Results for

    Show / Hide Table of Contents
    View Source

    Class LogViewerService

    Represents a service for viewing logs in Umbraco.

    Inheritance
    object
    LogViewerServiceBase
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class LogViewerService : LogViewerServiceBase, ILogViewerService, IService

    Constructors

    View Source

    LogViewerService(ILogViewerQueryRepository, ICoreScopeProvider, ILoggingConfiguration, ILogViewerRepository)

    Initializes a new instance of the LogViewerService class.

    Declaration
    public LogViewerService(ILogViewerQueryRepository logViewerQueryRepository, ICoreScopeProvider provider, ILoggingConfiguration loggingConfiguration, ILogViewerRepository logViewerRepository)
    Parameters
    Type Name Description
    ILogViewerQueryRepository logViewerQueryRepository
    ICoreScopeProvider provider
    ILoggingConfiguration loggingConfiguration
    ILogViewerRepository logViewerRepository

    Properties

    View Source

    LoggerName

    Gets the name of the logger.

    Declaration
    protected override string LoggerName { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    CanViewLogsAsync(LogTimePeriod)

    Checks if the logs for the specified time period can be viewed.

    Declaration
    public override Task<Attempt<bool, LogViewerOperationStatus>> CanViewLogsAsync(LogTimePeriod logTimePeriod)
    Parameters
    Type Name Description
    LogTimePeriod logTimePeriod
    Returns
    Type Description
    Task<Attempt<bool, LogViewerOperationStatus>>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX