Java 如何筛选出Hibernate日志条目
我使用的是hibernate 3.5.0-*并且我得到了很多我想去掉的日志条目(在我的标准输出中) 我不知道它从哪里来,但我怀疑Hibernate可能负责生成它 它看起来像:Java 如何筛选出Hibernate日志条目,java,hibernate,logging,orm,configuration,Java,Hibernate,Logging,Orm,Configuration,我使用的是hibernate 3.5.0-*并且我得到了很多我想去掉的日志条目(在我的标准输出中) 我不知道它从哪里来,但我怀疑Hibernate可能负责生成它 它看起来像: > orderByFragment(order-by) > sortSpecification({sort specification}) > sortKeySpecification(sort key) > sortKey($PlaceHolder$.lastname)
> orderByFragment(order-by)
> sortSpecification({sort specification})
> sortKeySpecification(sort key)
> sortKey($PlaceHolder$.lastname)
< sortKey(null)
< sortKeySpecification(asc)
> orderingSpecification(asc)
< orderingSpecification(null)
< sortSpecification(null)
...
>orderByFragment(orderby)
>sortSpecification({sort specification})
>sortKeySpecification(排序键)
>sortKey($PlaceHolder$.lastname)
订购规格(asc)
有人知道它来自何处以及如何删除吗?这是因为您设置了默认的跟踪日志级别 请尝试将其设置为警告:
- Logback/Log4j2
<logger name="org.hibernate" level="warn"/>
- Log4j
<logger name="org.hibernate"> <level value="warn"/> </logger>