Open Closed

Turning off Audit Logging for Specific Tenants #4289


User avatar
0
viswajwalith created
  • ABP Framework version: v5.1.3
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

We would like to Turn Off the Audit Logging for Specific Tenants , we have a feature for Audit Logging but it just hiding the adult log page for that tenant not the entries into Audit Tables "AbpAuditLogs" & "AbpAuditLogActions"

are we missing anything here? Please advise.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This property controls the show and hides UI.

    You can override the AbpAuditingMiddleware And check the current tenant to disable save to DB.

    if (currentTenat.Id == xxx)
    {
        await next(context);
        return;
    }
    
    

    https://github.com/abpframework/abp/blob/c78497a4cebf1ca39e355b6b62185db4a291dc80/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Auditing/AbpAuditingMiddleware.cs#L39

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 17, 2025, 10:38