Glasgow Technology Network Message Board › Programming › Netbeans/Tomcat Hibernate Logging
| Jim Reynolds | |
|
Might as well give this a go.
I'm having trouble debugging an application running in the Tomcat container. The application is being developed using Netbeans IDE (6.5.1) and uses JPA with Hibernate. The problem is that the Tomcat log is full of hibernate debug/info messages which I can't seem to stop. All the examples I've found online about this refer to Log4J which is not used. The logging in use is just standard Tomcat logging which I think uses Java.util.logging The problem is I don't know how to tell hibernate to stop outputting the messages that's filling up the log and making it difficult to debug. Any help appreciated. Thanks in advance. -- Jim |
|
| Robert Ray | |
|
|
Apologies for the late reply. Been hectic with a lot of other stuff.
Not sure how this is resolved yet using the frameworks you mention. But you could always grep to get line not matching the pattern of a specific debug message. for example: file contains: debug101 debug101 debug102 debug101 debug101 I want debug 102 messages only: grep 101 -v filename >> filename2; less filename2 Maybe not ideal if your log files are really huge. Edited by Robert Ray on Apr 27, 2012 11:34 PM |