Need help with Hibernate? Read this first:
Hi ,
I have a very strange problem . The application uses a custom adaptor over logger over log4j . The configuration is dynamically set and is not using the config xml file . The application uses hibernate and hibernate starts to print out the log statements . I can understand that the hibernate logging will work as long as log4j is found in the classpath . I would like to know how do I turn off logging by hibernate in my programs( dynamically).Please note that I am not using the static config xml files or log4j.properties . I am using log4j 2.7 .
Hibernate version:
3.1.3
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Thanks ,
Arun
|