Open Closed

ABP Get Request logs #5192


User avatar
0
guven.uysall created
  • ABP Framework version: v6.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

ABP logs successful POST requests. But it does not log successful get requests. How can I log get requests. Let abp log automatically. I don't write manual code


1 Answer(s)
  • User Avatar
    0
    nlachmuthDev created

    You can configure the audit functionality to log get requests.

    add this to your ConfigureServices method inside your module:

    Configure<AbpAuditingOptions>(options =>
    {
        options.IsEnabledForGetRequests = true; //Enable auditing for get requests
    });
    

    You can find a full list of available options for audit logging here: https://docs.abp.io/en/abp/latest/Audit-Logging#abpauditingoptions

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09