Class LogViewerService
Represents a service for viewing logs in Umbraco.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class LogViewerService : LogViewerServiceBase, ILogViewerService, IService
Constructors
View SourceLogViewerService(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 SourceLoggerName
Gets the name of the logger.
Declaration
protected override string LoggerName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceCanViewLogsAsync(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>> |