Sam
Sam

Reputation: 25

Filter Hibernate Log messages - To take out Constraint Tree

I am trying to find out a method to take out the Constraint Tree / Constraint Validation Manager from my logfiles.

I am using Jersey Bean Validation and Hibernate.

TRACE ConstraintTree 
TRACE ConstraintValidatorManager - Constraint validator org.hibernate.validator.internal.constraintvalidators.

Also I am using logback.xml.

Please can you help me to remove them from my logfiles?

Thanks, Sam

Upvotes: 0

Views: 72

Answers (1)

Jamie Holdstock
Jamie Holdstock

Reputation: 176

This isn't the best approach but if you are really deperate to get rid of these lines, you can simply increase your log level to anything above "TRACE". The lines will still be going through your logging code, but they wont appear in your log file.

Note that any other messages logged at the TRACE level will also disappear from your logs.

Upvotes: 1

Related Questions