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 |
|---|---|---|
| ILogViewerService | logViewerService | |
| IUmbracoMapper | 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 |
|---|---|---|
| CancellationToken | cancellationToken | |
| System.Nullable<DateTimeOffset> | startDate | The start date for the date range (can be null). |
| System.Nullable<DateTimeOffset> | endDate | The end date for the date range (can be null). |
Returns
| Type | Description |
|---|---|
| Task<IActionResult> | The log level counts from the (filtered) logs. |