Show / Hide Table of Contents

    Class LogController

    The API controller used for getting log history

    Inheritance
    System.​Object
    System.​Web.​Http.​Api​Controller
    Umbraco​Api​Controller​Base
    Umbraco​Api​Controller
    Umbraco​Authorized​Api​Controller
    Umbraco​Authorized​Json​Controller
    Namespace:System.Dynamic.ExpandoObject
    Assembly:umbraco.dll
    Syntax
    [PluginController("UmbracoApi")]
    public class LogController : UmbracoAuthorizedJsonController, IHttpController, IDisposable, IDiscoverable

    Methods

    GetCurrentUserLog(AuditType, Nullable<DateTime>)

    Declaration
    [Obsolete("Use GetPagedCurrentUserLog instead")]
    public IEnumerable<AuditLog> GetCurrentUserLog(AuditType logType, DateTime? sinceDate)
    Parameters
    Type Name Description
    Audit​Type logType
    System.​Nullable<System.​Date​Time> sinceDate
    Returns
    Type Description
    System.​Collections.​Generic.​IEnumerable<Audit​Log>

    GetEntityLog(Int32)

    Declaration
    [Obsolete("Use GetPagedLog instead")]
    public IEnumerable<AuditLog> GetEntityLog(int id)
    Parameters
    Type Name Description
    System.​Int32 id
    Returns
    Type Description
    System.​Collections.​Generic.​IEnumerable<Audit​Log>

    GetLog(AuditType, Nullable<DateTime>)

    Declaration
    [Obsolete("Use GetPagedLog instead")]
    public IEnumerable<AuditLog> GetLog(AuditType logType, DateTime? sinceDate)
    Parameters
    Type Name Description
    Audit​Type logType
    System.​Nullable<System.​Date​Time> sinceDate
    Returns
    Type Description
    System.​Collections.​Generic.​IEnumerable<Audit​Log>

    GetPagedCurrentUserLog(Int32, Int32, Direction, Nullable<DateTime>)

    Declaration
    public PagedResult<AuditLog> GetPagedCurrentUserLog(int pageNumber = 1, int pageSize = 0, Direction orderDirection = Direction.Descending, DateTime? sinceDate = null)
    Parameters
    Type Name Description
    System.​Int32 pageNumber
    System.​Int32 pageSize
    Direction orderDirection
    System.​Nullable<System.​Date​Time> sinceDate
    Returns
    Type Description
    Paged​Result<Audit​Log>

    GetPagedEntityLog(Int32, Int32, Int32, Direction, Nullable<DateTime>)

    Declaration
    public PagedResult<AuditLog> GetPagedEntityLog(int id, int pageNumber = 1, int pageSize = 0, Direction orderDirection = Direction.Descending, DateTime? sinceDate = null)
    Parameters
    Type Name Description
    System.​Int32 id
    System.​Int32 pageNumber
    System.​Int32 pageSize
    Direction orderDirection
    System.​Nullable<System.​Date​Time> sinceDate
    Returns
    Type Description
    Paged​Result<Audit​Log>
    In This Article
    • Methods
      • GetCurrentUserLog(AuditType, Nullable<DateTime>)
      • GetEntityLog(Int32)
      • GetLog(AuditType, Nullable<DateTime>)
      • GetPagedCurrentUserLog(Int32, Int32, Direction, Nullable<DateTime>)
      • GetPagedEntityLog(Int32, Int32, Int32, Direction, Nullable<DateTime>)
    Back to top Copyright © 2016 Umbraco
    Generated by DocFX