View Source
  Class LogController
  
  The API controller used for getting log history
 
  
  
    Inheritance
      System.Object
      Microsoft.AspNetCore.Mvc.ControllerBase
      
      
      
      
      
   
  
  Assembly: Umbraco.Web.BackOffice.dll
  Syntax
  
    public class LogController : UmbracoAuthorizedJsonController
   
  Constructors
  
  
    View Source
  
  LogController(MediaFileManager, IImageUrlGenerator, IAuditService, IUmbracoMapper, IBackOfficeSecurityAccessor, IUserService, AppCaches, ISqlContext)
  
  
  Declaration
  
    public LogController(MediaFileManager mediaFileSystem, IImageUrlGenerator imageUrlGenerator, IAuditService auditService, IUmbracoMapper umbracoMapper, IBackOfficeSecurityAccessor backofficeSecurityAccessor, IUserService userService, AppCaches appCaches, ISqlContext sqlContext)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | MediaFileManager | 
        mediaFileSystem | 
         | 
      
      
        | IImageUrlGenerator | 
        imageUrlGenerator | 
         | 
      
      
        | IAuditService | 
        auditService | 
         | 
      
      
        | IUmbracoMapper | 
        umbracoMapper | 
         | 
      
      
        | IBackOfficeSecurityAccessor | 
        backofficeSecurityAccessor | 
         | 
      
      
        | IUserService | 
        userService | 
         | 
      
      
        | AppCaches | 
        appCaches | 
         | 
      
      
        | ISqlContext | 
        sqlContext | 
         | 
      
    
  
  Methods
  
  
    View Source
  
  GetLog(AuditType, Nullable<DateTime>)
  
  
  Declaration
  
    public IEnumerable<AuditLog> GetLog(AuditType logType, DateTime? sinceDate = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | AuditType | 
        logType | 
         | 
      
      
        | System.Nullable<DateTime> | 
        sinceDate | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<AuditLog> | 
         | 
      
    
  
  
    View Source
  
  GetPagedCurrentUserLog(Int32, Int32, Direction, Nullable<DateTime>)
  
  
  Declaration
  
    public PagedResult<AuditLog> GetPagedCurrentUserLog(int pageNumber = 1, int pageSize = 10, Direction orderDirection = null, DateTime? sinceDate = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        pageNumber | 
         | 
      
      
        | System.Int32 | 
        pageSize | 
         | 
      
      
        | Direction | 
        orderDirection | 
         | 
      
      
        | System.Nullable<DateTime> | 
        sinceDate | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | PagedResult<AuditLog> | 
         | 
      
    
  
  
    View Source
  
  GetPagedEntityLog(Int32, Int32, Int32, Direction, Nullable<DateTime>)
  
  
  Declaration
  
    [Authorize(Policy = "SectionAccessContentOrMedia")]
public PagedResult<AuditLog> GetPagedEntityLog(int id, int pageNumber = 1, int pageSize = 10, Direction orderDirection = null, DateTime? sinceDate = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        id | 
         | 
      
      
        | System.Int32 | 
        pageNumber | 
         | 
      
      
        | System.Int32 | 
        pageSize | 
         | 
      
      
        | Direction | 
        orderDirection | 
         | 
      
      
        | System.Nullable<DateTime> | 
        sinceDate | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | PagedResult<AuditLog> | 
         |