✅ Why Serilog don't log errors???
Hi guys,
I'm trying to logging using
Serilog
, the logging targeting File
,
Everything works fine, but when I log error it not logged,
In my program.cs
the registration of Serilog
I did as the following:
Please any help to fix this issue, and massive thanks in advance <34 Replies
when you say "don't log errors"... what exactly do you mean?
serilog wont magically start logging exceptions thrown in random parts of your program
it will log things logged in serilog with the
error
log level.yeah, you're right, the issue is I only forgot to add the following config :
yup!
Massive thanks, I appreciate