Base solution for your next web application
Open Closed

Logging only in text file #7233


User avatar
0
bancentral created

Hello guys,

I want to know if there is a way to log only in the text file and not log in DataBase (AbpAuditLogs)


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Then disable it

    public class MyModule : AbpModule
    {
        public override void PreInitialize()
        {
            Configuration.Auditing.IsEnabled = false;
        }
    }
    

    https://aspnetboilerplate.com/Pages/Documents/Audit-Logging#configuration

  • User Avatar
    0
    ryancyq created
    Support Team

    Otherwise, you can implement your own CustomAuditingStore (save audit log into file instead kf repository) to replace the default AuditingStore