I'm using Hibernate OGM 4.1.0 with MongoDb. How to log query string to stdout? I configured the log setting as follow:
Code:
log4j.logger.org.hibernate=INFO, hb
log4j.logger.org.hibernate.SQL=DEBUG
log4j.logger.org.hibernate.type=TRACE
log4j.logger.org.hibernate.hql.ast.AST=info
log4j.logger.org.hibernate.tool.hbm2ddl=warn
log4j.logger.org.hibernate.hql=debug
log4j.logger.org.hibernate.cache=info
log4j.logger.org.hibernate.jdbc=debug
log4j.appender.hb=org.apache.log4j.ConsoleAppender
log4j.appender.hb.layout=org.apache.log4j.PatternLayout
log4j.appender.hb.layout.ConversionPattern=HibernateLog --> %d{HH:mm:ss} %-5p %c - %m%n
log4j.appender.hb.Threshold=TRACE
but I can't see any query string show in stdout.
When I do some query I get this:
Code:
HibernateLog --> 14:35:35 TRACE org.hibernate.type.CollectionType - Created collection wrapper: [com.filmore.domain.Film.comments#54c131d62377a16bc97fbef8]
HibernateLog --> 14:35:35 TRACE org.hibernate.type.CollectionType - Created collection wrapper: [com.filmore.domain.Film.comments#54c131d62377a16bc97fbef9]
HibernateLog --> 14:35:35 TRACE org.hibernate.type.CollectionType - Created collection wrapper: [com.filmore.domain.Film.comments#54c131f32377a16bc97fbefa]
HibernateLog --> 14:35:35 TRACE org.hibernate.type.CollectionType - Created collection wrapper: [com.filmore.domain.Film.comments#54c131f32377a16bc97fbefb]
I don't know what these messages mean.
Is there something wrong?
Thanks!