Reputation: 360
I'm using hibernate 3.5.0-* and I get a lot of log entries (on my standard output) that I'd like to get rid off.
I couldn't figure out where it comes from but I suspect Hibernate might be responsible for generating it.
It looks like:
> orderByFragment(order-by)
> sortSpecification({sort specification})
> sortKeySpecification(sort key)
> sortKey($PlaceHolder$.lastname)
< sortKey(null)
< sortKeySpecification(asc)
> orderingSpecification(asc)
< orderingSpecification(null)
< sortSpecification(null)
...
Anybody knows where it comes from and how to remove it?
Upvotes: 3
Views: 756
Reputation: 153720
That's because you have set a default TRACE log level.
Try setting it to WARN instead:
Logback/Log4j2
<logger name="org.hibernate" level="warn"/>
Log4j
<logger name="org.hibernate">
<level value="warn"/>
</logger>
Upvotes: 2