Project

Audit Logs

In audit logs page, we can see all user interactions with the application:

Audit logs

All application service methods and MVC controller actions are automatically logged and can be viewed here. See audit logs documentation to learn how to configure it. When we click the magnifier icon, we can see all details an audit log:

Audit Log

Audit log report is provided by AuditLogAppService class.

Periodic Log Deletion

ASP.NET Zero has built-in periodic log deletion system. To enable it, go to *.Application/Auditing/ExpiredAuditLogDeleterWorker.cs and set IsEnabled to true;

 public class ExpiredAuditLogDeleterWorker : PeriodicBackgroundWorkerBase, ISingletonDependency
    {
   		...
		public const bool IsEnabled = false;//default is false
		...

It has two more parameter.

CheckPeriodAsMilliseconds: Time to wait between two controls.

MaxDeletionCount: The maximum number of records that can be deleted at once.

Note: To perform smaller operations with more frequent intervals you can decrease MaxDeletionCount and CheckPeriodAsMilliseconds.

Next

Contributors


Last updated: February 17, 2020 Edit this page on GitHub
In this document