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 |
---|---|---|
ILog |
logViewerService | |
IUmbraco |
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 |
---|---|---|
Cancellation |
cancellationToken | |
System. |
skip | The amount of items to skip. |
System. |
take | The amount of items to take. |
Direction | orderDirection | By default this will be ordered descending (newest items first). |
System. |
filterExpression | The query expression to filter on (can be null). |
Log |
logLevels | The log levels for which to retrieve the log messages (can be null). |
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 paged result of the logs from the given time period. |