View Source
Class LogViewerSourceBase
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class LogViewerSourceBase : ILogViewer
Constructors
View Source
LogViewerSourceBase(String)
Declaration
protected LogViewerSourceBase(string pathToSearches = "")
Parameters
Type |
Name |
Description |
System.String |
pathToSearches |
|
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
Type |
Description |
System.Collections.Generic.IReadOnlyList<SavedLogSearch> |
|
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
Type |
Description |
System.Collections.Generic.IReadOnlyList<SavedLogSearch> |
|
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
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 |
System.Collections.Generic.IReadOnlyList<LogEvent> |
|
View Source
GetMessageTemplates(LogTimePeriod)
Declaration
public IEnumerable<LogTemplate> GetMessageTemplates(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<LogTemplate> |
|
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
Type |
Description |
System.Collections.Generic.IReadOnlyList<SavedLogSearch> |
|