Search Results for

    Show / Hide Table of Contents
    View Source

    Class AllLogViewerController

    Inheritance
    System.Object
    ManagementApiControllerBase
    LogViewerControllerBase
    Namespace: Umbraco.Cms.Api.Management.Controllers.LogViewer
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public class AllLogViewerController : LogViewerControllerBase

    Constructors

    View Source

    AllLogViewerController(ILogViewerService, IUmbracoMapper)

    Declaration
    public AllLogViewerController(ILogViewerService logViewerService, IUmbracoMapper umbracoMapper)
    Parameters
    Type Name Description
    ILogViewerService logViewerService
    IUmbracoMapper umbracoMapper

    Methods

    View Source

    AllLogs(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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • AllLogViewerController(ILogViewerService, IUmbracoMapper)
    • Methods
      • AllLogs(CancellationToken, Int32, Int32, Direction, String, LogLevel[], Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX