You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, in my program.cs file I usually wrap it in a try/catch statement and log any exceptions thrown. I do this by creating a LogFactory early, but according to a note on the bottom of this page, we should not create a logger factory.
So I was just trying to understand what is the best way to handle errors thrown at any point in the program.cs when we can't log errors in the program.cs?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, in my program.cs file I usually wrap it in a try/catch statement and log any exceptions thrown. I do this by creating a LogFactory early, but according to a note on the bottom of this page, we should not create a logger factory.
So I was just trying to understand what is the best way to handle errors thrown at any point in the program.cs when we can't log errors in the program.cs?
Beta Was this translation helpful? Give feedback.
All reactions