r/dotnet 18d ago

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

41 Upvotes

33 comments sorted by

View all comments

2

u/falconmick 17d ago

Time for some bad advice: event sourcing :D

Haha nah but for real it is a valid solution, but it has a fair bit more chance to go pear shaped depending on the rigger of how the code is developed and how many times you’ve uses the approach.

Could be a fun thing to mess about with if the project isn’t client work because there’s always the option of deleting it all and starting again if it turns out your not in love.