Glasgow Technology Network Message Board Programming › Netbeans/Tomcat Hibernate Logging

Netbeans/Tomcat Hibernate Logging

Jim Reynolds
Posted Feb 14, 2012 10:06 AM
user 8019187
Motherwell, GB
Post #: 2
Send an Email Post a Greeting
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
Posted Apr 27, 2012 11:33 PM
rabray
Glasgow, GB
Post #: 45
Send an Email Post a Greeting
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.
Powered by mvnForum

Kulkarni Software Ltd.

Group Organisation and Management

JetBrains

Software Licenses

Stow College

Venue Sponsor

O'Reilly

Group Sponsor

Manning

Books for Review and Group Discount

People in this
Meetup are also in:

Log in

Not registered with us yet?

Sign up

Meetup members, Log in

or
By clicking the "Sign up using Facebook" or "Sign up" buttons above, you agree to Meetup's Terms of Service