View Source
Class LogViewerRepository
Inheritance
System.Object
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
Methods
View Source
GetGlobalMinLogLevel()
Gets the minimum-level log value from the config file.
Declaration
public LogLevel GetGlobalMinLogLevel()
Returns
View Source
GetLogCount(LogTimePeriod)
Returns the number of the different log level entries.
Declaration
public LogLevelCounts GetLogCount(LogTimePeriod logTimePeriod)
Parameters
Returns
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
View Source
GetMessageTemplates(LogTimePeriod)
Returns a list of all unique message templates and their counts.
Declaration
public LogTemplate[] GetMessageTemplates(LogTimePeriod logTimePeriod)
Parameters
Returns
View Source
RestrictedToMinimumLevel()
Declaration
public LogLevel RestrictedToMinimumLevel()
Returns