View Source
Class LogViewerController
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class LogViewerController : UmbracoAuthorizedJsonController, IDiscoverable
Constructors
View Source
LogViewerController(ILogViewer)
Declaration
public LogViewerController(ILogViewer logViewer)
Parameters
Methods
View Source
DeleteSavedSearch(SavedLogSearch)
Declaration
public IEnumerable<SavedLogSearch> DeleteSavedSearch(SavedLogSearch item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<SavedLogSearch> |
|
View Source
GetCanViewLogs(Nullable<DateTime>, Nullable<DateTime>)
Declaration
public bool GetCanViewLogs(DateTime? startDate = null, DateTime? endDate = null)
Parameters
Type |
Name |
Description |
System.Nullable<System.DateTime> |
startDate |
|
System.Nullable<System.DateTime> |
endDate |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
GetLogLevel()
Declaration
public string GetLogLevel()
Returns
Type |
Description |
System.String |
|
View Source
GetLogLevelCounts(Nullable<DateTime>, Nullable<DateTime>)
Declaration
public LogLevelCounts GetLogLevelCounts(DateTime? startDate = null, DateTime? endDate = null)
Parameters
Type |
Name |
Description |
System.Nullable<System.DateTime> |
startDate |
|
System.Nullable<System.DateTime> |
endDate |
|
Returns
View Source
GetLogs(String, Int32, String, String[], Nullable<DateTime>, Nullable<DateTime>)
Declaration
public PagedResult<LogMessage> GetLogs(string orderDirection = "Descending", int pageNumber = 1, string filterExpression = null, string[] logLevels = null, DateTime? startDate = null, DateTime? endDate = null)
Parameters
Type |
Name |
Description |
System.String |
orderDirection |
|
System.Int32 |
pageNumber |
|
System.String |
filterExpression |
|
System.String[] |
logLevels |
|
System.Nullable<System.DateTime> |
startDate |
|
System.Nullable<System.DateTime> |
endDate |
|
Returns
View Source
GetMessageTemplates(Nullable<DateTime>, Nullable<DateTime>)
Declaration
public IEnumerable<LogTemplate> GetMessageTemplates(DateTime? startDate = null, DateTime? endDate = null)
Parameters
Type |
Name |
Description |
System.Nullable<System.DateTime> |
startDate |
|
System.Nullable<System.DateTime> |
endDate |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<LogTemplate> |
|
View Source
GetNumberOfErrors(Nullable<DateTime>, Nullable<DateTime>)
Declaration
public int GetNumberOfErrors(DateTime? startDate = null, DateTime? endDate = null)
Parameters
Type |
Name |
Description |
System.Nullable<System.DateTime> |
startDate |
|
System.Nullable<System.DateTime> |
endDate |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
GetSavedSearches()
Declaration
public IEnumerable<SavedLogSearch> GetSavedSearches()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<SavedLogSearch> |
|
View Source
PostSavedSearch(SavedLogSearch)
Declaration
public IEnumerable<SavedLogSearch> PostSavedSearch(SavedLogSearch item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<SavedLogSearch> |
|