Class LogLevelCountLogViewerController
Namespace: Umbraco.Cms.Api.Management.Controllers.LogViewer
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class LogLevelCountLogViewerController : LogViewerControllerBase
Constructors
View SourceLogLevelCountLogViewerController(ILogViewerService, IUmbracoMapper)
Declaration
public LogLevelCountLogViewerController(ILogViewerService logViewerService, IUmbracoMapper umbracoMapper)
Parameters
Type | Name | Description |
---|---|---|
ILog |
logViewerService | |
IUmbraco |
umbracoMapper |
Methods
View SourceLogLevelCounts(CancellationToken, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Gets the count for each log level from the logs for a specific date range.
Declaration
public async Task<IActionResult> LogLevelCounts(CancellationToken cancellationToken, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cancellationToken | |
System. |
startDate | The start date for the date range (can be null). |
System. |
endDate | The end date for the date range (can be null). |
Returns
Type | Description |
---|---|
Task<IAction |
The log level counts from the (filtered) logs. |