I just started using Log4Net and was looking to see what you have found to be useful in your logging experiences.
What types of things have you found to be useful to log
ERROR
level at the highest level in the call stack that is possible (typically in event handlers etc)WARN
level (because it might indicate that we need to improve our UI to better guide the user)INFO
level (i.e. anything that involves billing a customer's credit card, queries to a third party API etc), including the data involved (typically XML serialized, with any sensitive information removed)DEBUG
levelWe seldom use FATAL
level logging.
We normally deploy with a RollingLogFileAppender
at INFO
level, and an SmtpAppender
at ERROR
level.