Log.INFO vs. Log.DEBUG
Also remember that all info()
, error()
, and debug()
logging calls provide internal documentation within any application.
• Debug: fine-grained statements concerning program state, typically used for debugging;
• Info: informational statements concerning program state, representing program events or behavior tracking;
• Warn: statements that describe potentially harmful events or states in the program;
• Error: statements that describe non-fatal errors in the application; this level is used quite often for logging handled exceptions;
• Fatal: statements representing the most severe of error conditions, assumedly resulting in program termination.
Found on http://www.beefycode.com/post/Log4Net-Tutorial-pt-1-Getting-Started.aspx
I usually try to use it like this:
- DEBUG: Information interesting for Developers, when trying to debug a problem.
- INFO: Information interesting for Support staff trying to figure out the context of a given error
- WARN to FATAL: Problems and Errors depending on level of damage.