Re: Stack trace for Check exceptions
"Oliver Burn" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
I must be honest and say that the logging is not used a lot in Checkstyle (counter to how I personally normally do things). Are you sure your logging configuration file is being detected. Be sure to read http://commons.apache.org/logging/guide.html#Quick%20Start. Also, I would not be confident the information you are looking for is logged in the first place. On Tue, Jul 1, 2008 at 19:54, JOVANOVIC Nenad <[email protected]> wrote: > Hi! > > How can I configure Checkstyle to emit a detailed stack trace of > exceptions (e.g., NullPointerException) that are thrown inside Check > classes (both user-defined and checkstyle checks)? I am using the jar > file of checkstyle and would like to leave it in its original state, so > I am searching for a solution to my problem that does not require > compiling Checkstyle myself. Currently, Checkstyle swallows all the > details and simply notes "Got an exception - ..." in the report. > > In the source code of TreeWalker, I noticed that Checkstyle uses Apache > Commons Logging to log the details of the message, but where can I find > these details? I already tried to configure logging with a > commons-logging.properties, but to no avail. > > Thanks in advance, > -- Nenad > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user