Interface ILogViewer
Assembly: cs.temp.dll.dll
Syntax
public interface ILogViewer
Properties
CanHandleLargeLogs
Declaration
bool CanHandleLargeLogs { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
AddSavedSearch(String, String)
Adds a new saved search to chosen data source and returns the updated searches
Declaration
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
bool CheckCanOpenLogs(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Boolean |
|
DeleteSavedSearch(String, String)
Deletes a saved search to chosen data source and returns the remaining searches
Declaration
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()
Gets the current Serilog minimum log level
Declaration
[Obsolete("Please use GetLogLevels() instead. Scheduled for removal in V11.")]
string GetLogLevel()
Returns
Type |
Description |
System.String |
|
GetLogLevelCounts(LogTimePeriod)
Returns a number of the different log level entries
Declaration
LogLevelCounts GetLogLevelCounts(LogTimePeriod logTimePeriod)
Parameters
Returns
GetLogs(LogTimePeriod, Int32, Int32, Direction, String, String[])
Returns the collection of logs
Declaration
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
GetMessageTemplates(LogTimePeriod)
Returns a list of all unique message templates and their counts
Declaration
IEnumerable<LogTemplate> GetMessageTemplates(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<LogTemplate> |
|
GetNumberOfErrors(LogTimePeriod)
A count of number of errors
By counting Warnings with Exceptions, Errors & Fatal messages
Declaration
int GetNumberOfErrors(LogTimePeriod logTimePeriod)
Parameters
Returns
Type |
Description |
System.Int32 |
|
GetSavedSearches()
Get all saved searches from your chosen data source
Declaration
IReadOnlyList<SavedLogSearch> GetSavedSearches()
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyList<SavedLogSearch> |
|