Class SerilogLogViewerSourceBase
Inheritance
System.Object
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
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
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
Returns
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
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 |
System.Collections.Generic.IReadOnlyList<LogEvent> |
|
GetMessageTemplates(LogTimePeriod)
Declaration
public IEnumerable<LogTemplate> GetMessageTemplates(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<LogTemplate> |
|
GetNumberOfErrors(LogTimePeriod)
Declaration
public int GetNumberOfErrors(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Int32 |
|
GetSavedSearches()
Declaration
public virtual IReadOnlyList<SavedLogSearch> GetSavedSearches()
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyList<SavedLogSearch> |
|