View Source
Class SerilogLogViewerSourceBase
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class SerilogLogViewerSourceBase : ILogViewer
Constructors
View Source
SerilogLogViewerSourceBase(ILogViewerConfig, ILogger)
Declaration
protected SerilogLogViewerSourceBase(ILogViewerConfig logViewerConfig, ILogger serilogLog)
Parameters
View Source
SerilogLogViewerSourceBase(ILogViewerConfig, ILogLevelLoader, ILogger)
Declaration
protected SerilogLogViewerSourceBase(ILogViewerConfig logViewerConfig, ILogLevelLoader logLevelLoader, ILogger serilogLog)
Parameters
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
View Source
CheckCanOpenLogs(LogTimePeriod)
Declaration
public abstract bool CheckCanOpenLogs(LogTimePeriod logTimePeriod)
Parameters
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
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
Returns
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
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
Returns
Type |
Description |
IReadOnlyList<LogEvent> |
|
View Source
GetMessageTemplates(LogTimePeriod)
Declaration
public IEnumerable<LogTemplate> GetMessageTemplates(LogTimePeriod logTimePeriod)
Parameters
Returns
View Source
GetNumberOfErrors(LogTimePeriod)
Declaration
public int GetNumberOfErrors(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Int32 |
|
View Source
GetSavedSearches()
Declaration
public virtual IReadOnlyList<SavedLogSearch>? GetSavedSearches()
Returns