Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to insert the record programmatically in the AbpAuditLogs Table #10181


User avatar
0
mahendra created
  • What is your product version?
  • 5.3.0
  • What is your product type (Angular or MVC)? -** Angular**
  • What is product framework type (.net framework or .net core)?
  • .Net Core

Hi Experts,

All the public methods and Exceptions are being logged automatically in the AbpAuditLogs Table. Could you please let us know, How can we insert the record programmatically in the AbpAuditLogs Table.

Thanks,


1 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @mahendra You can use IAuditingHelper.SaveAsync. Please check following implementation for more information: https://github.com/aspnetboilerplate/aspnetboilerplate/blob/552c0240c44d9899c1209fb20eb48d35b17d5e54/src/Abp.AspNetCore/AspNetCore/Mvc/Auditing/AbpAuditPageFilter.cs