2 Replies Latest reply on Dec 5, 2005 7:15 AM by martinganserer

    Logging

    martinganserer

      Hello,

      can please some tell me how to disable logging of hibernate sql statements. I have long term transactions and within one transaction I get a log file of 14 GB!!

      Thank you!

        • 1. Re: Logging
          elkner

          persistence.xml:

          <property name="hibernate.show_sql" value="false"/>


          conf/log4j.xml:
           <category name="org.hibernate.type">
           <priority value="INFO"/>
           </category>
           <category name="org.hibernate.event.def">
           <priority value="INFO"/>
           </category>
           <category name="org.hibernate.engine.Cascades">
           <priority value="INFO"/>
           </category>
           <category name="org.hibernate.SQL">
           <priority value="INFO"/>
           </category>


          Does this help ?

          • 2. Re: Logging
            martinganserer

            Hi,

            thank you very much. That's it!!