C#C
C#4y ago
nahr

Logging EF-core exceptions

Hi,
I'm doing some refactor for logging db exceptions.
What's good practice when logging db exceptions?

Atm I think it's good enough to just log the exception because then I get the full stack trace and all info even tho some info might be bloated?

My PL asked me If I could log more specific info about the exception but I don't really see the point.
Any suggestion or thoughts how you guys would do it?
Was this page helpful?