Log4j - org.hibernate.type doesn't work!

后端 未结 3 1286
悲哀的现实
悲哀的现实 2020-12-25 15:36

This is my logger configuration:

log4j.logger.org.hibernate.SQL=TRACE, stdout
log4j.logger.org.hibernate.type=TRACE, stdout

but I don\'t se

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-25 16:12

    I faced the same problem with hibernate 3.5.5 and I found out that tracing is enabled by static field in org.hibernate.type.NullableType in the following way:

    private static final boolean IS_VALUE_TRACING_ENABLED = LoggerFactory.getLogger( StringHelper.qualifier( Type.class.getName() ) ).isTraceEnabled();
    

    So I set in log configuration log level TRACE for org.hibernate.type.Type and restarted a server.

    
        
    
    

提交回复
热议问题