0
ajayak created
Hi,
How can I disable Audit logs for some AppServices in my code?
Specifically, disable logs for all AppServices containg HookAppService in their name.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
1
You can use
[DisableAuditing]in your service or you can override theShouldSaveAuditmethod to implement your custom logic.https://aspnetboilerplate.com/Pages/Documents/Audit-Logging#enable-disable-by-attributes
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/8270b3e9197a69be71ea2b8d1de1ed7a073dc69c/src/Abp/Auditing/AuditingHelper.cs#L43
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)