View Source
Class LogController
The API controller used for getting log history
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class LogController : UmbracoAuthorizedJsonController, IDiscoverable
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<System.DateTime> |
sinceDate |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<AuditLog> |
|
View Source
GetPagedCurrentUserLog(Int32, Int32, Direction, Nullable<DateTime>)
Declaration
public PagedResult<AuditLog> GetPagedCurrentUserLog(int pageNumber = 1, int pageSize = 10, Direction orderDirection = Direction.Descending, DateTime? sinceDate = null)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
|
System.Int32 |
pageSize |
|
Direction |
orderDirection |
|
System.Nullable<System.DateTime> |
sinceDate |
|
Returns
View Source
GetPagedEntityLog(Int32, Int32, Int32, Direction, Nullable<DateTime>)
Declaration
public PagedResult<AuditLog> GetPagedEntityLog(int id, int pageNumber = 1, int pageSize = 10, 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.DateTime> |
sinceDate |
|
Returns