You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.6 KiB
1.6 KiB
LINGYUN.Abp.Auditing.Application
Application layer module for audit logging, providing implementation of audit logging application services.
Features
- Audit log query service
- Audit log management service
- Security log query service
- Integration with auto-mapping functionality
Module Dependencies
[DependsOn(typeof(AbpAuditingApplicationModule))]
public class YouProjectModule : AbpModule
{
// other
}
Required Modules
LINGYUN.Abp.AuditLogging- Audit logging core moduleLINGYUN.Abp.Logging- Logging infrastructure moduleAbpAutoMapper- ABP auto-mapping module
Service Interfaces
-
IAuditLogAppService - Audit log application service
- GetAsync - Get a specific audit log
- GetListAsync - Get a list of audit logs
- DeleteAsync - Delete a specific audit log
- DeleteManyAsync - Batch delete audit logs
-
ISecurityLogAppService - Security log application service
- GetAsync - Get a specific security log
- GetListAsync - Get a list of security logs
- DeleteAsync - Delete a specific security log
- DeleteManyAsync - Batch delete security logs
Basic Usage
- Reference the module
- Inject the required application service
- Call the appropriate service methods
Example:
public class YourService
{
private readonly IAuditLogAppService _auditLogAppService;
public YourService(IAuditLogAppService auditLogAppService)
{
_auditLogAppService = auditLogAppService;
}
public async Task<AuditLogDto> GetAuditLogAsync(Guid id)
{
return await _auditLogAppService.GetAsync(id);
}
}