skoruba / IdentityServer4.Admin

The administration for the IdentityServer4 and Asp.Net Core Identity
MIT License
3.57k stars 1.15k forks source link

Disable Identity Server Audit Logging Events #809

Open DureSameen opened 3 years ago

DureSameen commented 3 years ago

I need to disabled audit logging, How can I do that , please help.

skoruba commented 3 years ago

I tought that I added the Enabled flag, but I did not, so I will add this flag in the next release. 😊

For now you can override this method: LogEventAsync and instead of storing into DB, you can you logger or keep it empty. https://github.com/skoruba/AuditLogging/blob/master/src/Skoruba.AuditLogging/Services/AuditEventLogger.cs#L113

Thanks for feedback! 👋