diff --git a/hibernate-core/src/test/resources/log4j.properties b/hibernate-core/src/test/resources/log4j.properties index 9da187a9fc..18819f582a 100644 --- a/hibernate-core/src/test/resources/log4j.properties +++ b/hibernate-core/src/test/resources/log4j.properties @@ -32,6 +32,12 @@ log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n #log4j.appender.stdout-mdc.layout=org.apache.log4j.PatternLayout #log4j.appender.stdout-mdc.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L (walk path -> %X{hibernateLoadPlanWalkPath}) - %m%n +log4j.appender.unclosedSessionFactoryFile=org.apache.log4j.FileAppender +log4j.appender.unclosedSessionFactoryFile.append=true +log4j.appender.unclosedSessionFactoryFile.file=target/tmp/log/UnclosedSessionFactoryWarnings.log +log4j.appender.unclosedSessionFactoryFile.layout=org.apache.log4j.PatternLayout +log4j.appender.unclosedSessionFactoryFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n + log4j.rootLogger=info, stdout #log4j.logger.org.hibernate.loader.plan=trace, stdout-mdc @@ -65,3 +71,4 @@ log4j.logger.org.hibernate.boot.model.source.internal.hbm.ModelBinder=debug ### provide information about merged entity copies. ### log4j.logger.org.hibernate.event.internal.EntityCopyAllowedLoggedObserver=debug +log4j.logger.org.hibernate.testing.junit4.TestClassMetadata=info, unclosedSessionFactoryFile