4 Answer(s)
-
0
hi
Could you please share more details/log and screenshots?
Thanks.
-
0
-
0
-
0
To disable auditing in ABP Framework, you should use the
[DisableAuditing]
attribute on your class, method, or property. This attribute prevents audit logs from being recorded for the decorated element.If you have applied
[DisableAuditing]
but still see audit logs being recorded, ensure the following:- The attribute is applied to the correct target (class, method, or property).
- The entity or method is not included in
AbpAuditingOptions.AlwaysLogSelectors
or similar configuration that forces auditing. - The entity is not being audited due to other global selectors or contributors.
- The type is not included in
AbpAuditingOptions.IgnoredTypes
(which disables auditing, but if not set, auditing may still occur).
Example usage:
[DisableAuditing] public class MyEntity : Entity<Guid> { public string Name { get; set; } public string Email { get; set; } public string Password { get; set; } }
- If you want to disable auditing for specific properties only:
[Audited] public class MyUser : Entity<Guid> { public string Name { get; set; } public string Email { get; set; } [DisableAuditing] // This property will not be audited public string Password { get; set; } }
- If you want to audit only specific properties and ignore all others:
[DisableAuditing] public class MyUser : Entity<Guid> { [Audited] // Only this property will be audited public string Name { get; set; } public string Email { get; set; } public string Password { get; set; } }
If you have confirmed all the above and auditing is still not disabled, check for custom audit log contributors or overridden auditing stores in your solution that may bypass the attribute.
For more details, see the official documentation.
Sources:
- https://abp.io/docs/latest/framework/infrastructure/audit-logging
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.