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

Enable Auditing on certain controllers/services only #6703


User avatar
0
azmat created

Hi,

I would like to enable auditing in certain section of application only, when some changes to data happens. Like change in Role Permission, User assignment to roles and when data is added or modified in few entities created for my application.

Can you guide me how to achive above requirement?


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

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

  • User Avatar
    1
    azmat created

    managed to achieve it by adding [DisableAuditing] in all controllers and services methods where auditing is not required.

    Ideally there should be a way to stop auditing for whole application and enable it only on required Controllers and services