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.4 KiB
1.4 KiB
LINGYUN.Abp.AuditLogging
Audit logging core module, providing basic functionality and interface definitions for audit logging.
Features
- Audit logging infrastructure
- Audit log repository interface definitions
- Audit log manager interface definitions
- Support for ignoring specific types in audit logging
Module Dependencies
[DependsOn(typeof(AbpAuditLoggingModule))]
public class YouProjectModule : AbpModule
{
// other
}
Configuration
{
"Auditing": {
"IsEnabled": true, // Enable or disable audit logging
"HideErrors": true, // Hide error information in audit logs
"IsEnabledForAnonymousUsers": true, // Enable audit logging for anonymous users
"IsEnabledForGetRequests": false, // Enable audit logging for GET requests
"ApplicationName": null // Application name
}
}
Basic Usage
- Reference the module
- Configure audit logging options
- Implement an audit log storage provider (e.g., EntityFrameworkCore or Elasticsearch)
Advanced Features
Ignoring Specific Types
By default, the module ignores audit logs for the following types:
- CancellationToken
- CancellationTokenSource
You can add more types to ignore through configuration:
Configure<AbpAuditingOptions>(options =>
{
options.IgnoredTypes.AddIfNotContains(typeof(YourType));
});