[logging] Log.INFO vs. Log.DEBUG

I am developing a large commercial program and keep confusing myself between what kind of information i want to log with Log.INFO and Log.DEBUG. Are there any standards or rules of thumb on what each type of log message contains?

This question is related to logging

The answer is


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


Also remember that all info(), error(), and debug() logging calls provide internal documentation within any application.