Search Results for

    Show / Hide Table of Contents
    View Source

    Class LogLevelCountLogViewerController

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

    Constructors

    View Source

    LogLevelCountLogViewerController(ILogViewerService, IUmbracoMapper)

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

    Methods

    View Source

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

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • LogLevelCountLogViewerController(ILogViewerService, IUmbracoMapper)
    • Methods
      • LogLevelCounts(CancellationToken, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX