Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I am a bit confused what way is the right way to log exceptions
Log.Fatal(exception format, args);
or
logger.FatalException("Got exception.", ex);
似乎主要是一个偏好问题。我倾向于使用该log.FatalException("blah", ex)模型有两个原因。
log.FatalException("blah", ex)