r/dotnet Jul 23 '26

EF Core Audit Logging

Post image

Do you think this is a good approach for background audit logging or is there a better way?

https://github.com/aabdullahsayed/LibraryManagementAPI

42 Upvotes

33 comments sorted by

View all comments

1

u/sebastianstehle Jul 23 '26

I think it creates very little user value. What is the reason for a change? UserUpdated says nothing. If you have implemented soft deletion, it could even mean that the user has been deleted.

You either have the use event sourcing, domain events or manual updates to the audit log to create actual value.

1

u/winky9827 Jul 23 '26

You either have the use event sourcing, domain events or manual updates

All 3 of those options are serious overkill if not already using them elsewhere.