You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ashish Sureka <as...@iiitd.ac.in> on 2014/07/13 07:55:38 UTC

Question regarding usage of Logging Level

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/ ]

Re: Question regarding usage of Logging Level

Posted by David Kerber <dc...@verizon.net>.
On 7/13/2014 1:55 AM, Ashish Sureka wrote:
> 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?

It appears that you already answered your own question...


>
> 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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org