Menu

#11 Logging stack trace in EnhancedJarFile

carbon_2.0
open
nobody
5
2003-07-10
2003-07-10
Akash Tayal
No

EnhancedJarFile also logs the stack trace.

e.g.

if (log.isTraceEnabled()) {
log.trace("Openning Jar [" + name + "] " +
ExceptionUtility.captureStackTrace(new Exception()));
}

The reason for doing this is not obvious.

Logging stack traces under normal circumstances doesnt
seem to be the standard.

Scratchy #513

Discussion


Log in to post a comment.

MongoDB Logo MongoDB