Apache uses a logging utility. The logging utility consists of several
levels such as: TRACE, DEBUG, INFO, WARN, ERROR and FATAL.


Which logging level to use (and also when to use) depends on the
level/severity of the event (which needs to be tracked/logged).


My question is:

1.       Are there situations when logging is not used when it is supposed
to be used and vice-versa.

2.       Are there situations when incorrect logging level is used?

An SVN-commit/code-change (or perhaps sometimes a bug report is filed) is
then done to fix the issue.


For example (a concrete example). A recent bug report:

https://issues.apache.org/bugzilla/show_bug.cgi?id=56546


has a developer comment “Reduce the log level for stack trace message from
log.error() to log.info(). In the current code there are two "log.error()"
messages at once, which looks like overkill.”


This comment shows that logging was used incorrectly.


Thanks in advance,

Ashish

-- 
Ashish Sureka : [Homepage http://www.iiitd.edu.in/~ashish/ ] , [Blog :
http://ashish-sureka-delhi.blogspot.in/ ]

Reply via email to