Class AllLogViewerController
Namespace: Umbraco.Cms.Api.Management.Controllers.LogViewer
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class AllLogViewerController : LogViewerControllerBase
Constructors
View SourceAllLogViewerController(ILogViewerService, IUmbracoMapper)
Declaration
public AllLogViewerController(ILogViewerService logViewerService, IUmbracoMapper umbracoMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogViewerService | logViewerService | |
| IUmbracoMapper | umbracoMapper |
Methods
View SourceAllLogs(CancellationToken, Int32, Int32, Direction, String, LogLevel[], Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Gets a paginated list of all logs for a specific date range.
Declaration
public async Task<IActionResult> AllLogs(CancellationToken cancellationToken, int skip = 0, int take = 100, Direction orderDirection = null, string filterExpression = null, LogLevel[] logLevels = null, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | |
| System.Int32 | skip | The amount of items to skip. |
| System.Int32 | take | The amount of items to take. |
| Direction | orderDirection | By default this will be ordered descending (newest items first). |
| System.String | filterExpression | The query expression to filter on (can be null). |
| LogLevel[] | logLevels | The log levels for which to retrieve the log messages (can be null). |
| 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 paged result of the logs from the given time period. |