0
suresht created
- ABP Framework version: v8.3.0
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
- I am unable to find examples that show how to implement a central way of auditing API calls from Module to other systems. I have reviewed details at the following link and am following them:
- https://abp.io/support/questions/218/AbpAuditLogs-and-AbpAuditLogActions
- Is there a SQL table that is used for audit logging in abp.io like in abp (AbpAuditLogs table)? If so, is there an example you can provide?
- Thanks
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
4 Answer(s)
-
0
Hi,
Sorry, I don't quite understand.
If you want to get audit logging, you can inject
IAuditLogsAppServiceorIAuditLogRepositoryMarkdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
I implemented auditing using IAuditingManager. On the Host side, IntegrationServicesTimeCardServiceModule class, the following code has been added:
app.UseAuditing()On the Module (Services) side, the following code has been added:
Configure<AbpAuditingOptions>(options => { options.IsEnabled = true; options.IsEnabledForGetRequests = true; options.ApplicationName = configuration.GetValue<string>("ApplicationName"); });There are no errors when executing the application and testing any endpoint. However, there are no entries in the [AuditLoggingService_dev].[dbo].[AbpAuditLogs] table.
I shared a One Drive link with you so that you can review all code on the Host and Module sides. Please let me know what is incorrect with the implementation and your suggestion on how to fix it.
Thanks.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
