Search Results for

    Show / Hide Table of Contents
    View Source

    Class LogViewerController

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    UmbracoAuthorizedJsonController
    BackOfficeNotificationsController
    Namespace: Umbraco.Cms.Web.BackOffice.Controllers
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [PluginController(null)]
    [Authorize(Policy = "SectionAccessSettings")]
    public class LogViewerController : BackOfficeNotificationsController, IUmbracoFeature, IDiscoverable

    Constructors

    View Source

    LogViewerController(ILogViewer)

    Declaration
    [Obsolete]
    public LogViewerController(ILogViewer logViewer)
    Parameters
    Type Name Description
    ILogViewer logViewer
    View Source

    LogViewerController(ILogViewer, ILogLevelLoader)

    Declaration
    [ActivatorUtilitiesConstructor]
    public LogViewerController(ILogViewer logViewer, ILogLevelLoader logLevelLoader)
    Parameters
    Type Name Description
    ILogViewer logViewer
    ILogLevelLoader logLevelLoader

    Methods

    View Source

    DeleteSavedSearch(SavedLogSearch)

    Declaration
    [HttpPost]
    public IEnumerable<SavedLogSearch> DeleteSavedSearch(SavedLogSearch item)
    Parameters
    Type Name Description
    SavedLogSearch item
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<SavedLogSearch>
    View Source

    GetCanViewLogs(Nullable<DateTime>, Nullable<DateTime>)

    Declaration
    [HttpGet]
    public bool GetCanViewLogs([FromQuery] DateTime? startDate = null, [FromQuery] DateTime? endDate = null)
    Parameters
    Type Name Description
    System.Nullable<System.DateTime> startDate
    System.Nullable<System.DateTime> endDate
    Returns
    Type Description
    System.Boolean
    View Source

    GetLogLevel()

    Declaration
    [Obsolete("Please use GetLogLevels() instead. Scheduled for removal in V11.")]
    [HttpGet]
    public string GetLogLevel()
    Returns
    Type Description
    System.String
    View Source

    GetLogLevelCounts(Nullable<DateTime>, Nullable<DateTime>)

    Declaration
    [HttpGet]
    public ActionResult<LogLevelCounts> GetLogLevelCounts([FromQuery] DateTime? startDate = null, [FromQuery] DateTime? endDate = null)
    Parameters
    Type Name Description
    System.Nullable<System.DateTime> startDate
    System.Nullable<System.DateTime> endDate
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<LogLevelCounts>
    View Source

    GetLogLevels()

    Declaration
    [HttpGet]
    public ReadOnlyDictionary<string, LogEventLevel> GetLogLevels()
    Returns
    Type Description
    System.Collections.ObjectModel.ReadOnlyDictionary<System.String, LogEventLevel>
    View Source

    GetLogs(String, Int32, String, String[], Nullable<DateTime>, Nullable<DateTime>)

    Declaration
    [HttpGet]
    public ActionResult<PagedResult<LogMessage>> GetLogs(string orderDirection = "Descending", int pageNumber = 1, string filterExpression = null, [FromQuery(Name = "logLevels[]")] string[] logLevels = null, [FromQuery] DateTime? startDate = null, [FromQuery] DateTime? endDate = null)
    Parameters
    Type Name Description
    System.String orderDirection
    System.Int32 pageNumber
    System.String filterExpression
    System.String[] logLevels
    System.Nullable<System.DateTime> startDate
    System.Nullable<System.DateTime> endDate
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<PagedResult<LogMessage>>
    View Source

    GetMessageTemplates(Nullable<DateTime>, Nullable<DateTime>)

    Declaration
    [HttpGet]
    public ActionResult<IEnumerable<LogTemplate>> GetMessageTemplates([FromQuery] DateTime? startDate = null, [FromQuery] DateTime? endDate = null)
    Parameters
    Type Name Description
    System.Nullable<System.DateTime> startDate
    System.Nullable<System.DateTime> endDate
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<System.Collections.Generic.IEnumerable<LogTemplate>>
    View Source

    GetNumberOfErrors(Nullable<DateTime>, Nullable<DateTime>)

    Declaration
    [HttpGet]
    public ActionResult<int> GetNumberOfErrors([FromQuery] DateTime? startDate = null, [FromQuery] DateTime? endDate = null)
    Parameters
    Type Name Description
    System.Nullable<System.DateTime> startDate
    System.Nullable<System.DateTime> endDate
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<System.Int32>
    View Source

    GetSavedSearches()

    Declaration
    [HttpGet]
    public IEnumerable<SavedLogSearch> GetSavedSearches()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<SavedLogSearch>
    View Source

    PostSavedSearch(SavedLogSearch)

    Declaration
    [HttpPost]
    public IEnumerable<SavedLogSearch> PostSavedSearch(SavedLogSearch item)
    Parameters
    Type Name Description
    SavedLogSearch item
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<SavedLogSearch>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • LogViewerController(ILogViewer)
      • LogViewerController(ILogViewer, ILogLevelLoader)
    • Methods
      • DeleteSavedSearch(SavedLogSearch)
      • GetCanViewLogs(Nullable<DateTime>, Nullable<DateTime>)
      • GetLogLevel()
      • GetLogLevelCounts(Nullable<DateTime>, Nullable<DateTime>)
      • GetLogLevels()
      • GetLogs(String, Int32, String, String[], Nullable<DateTime>, Nullable<DateTime>)
      • GetMessageTemplates(Nullable<DateTime>, Nullable<DateTime>)
      • GetNumberOfErrors(Nullable<DateTime>, Nullable<DateTime>)
      • GetSavedSearches()
      • PostSavedSearch(SavedLogSearch)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX