1 Reply Latest reply on Nov 29, 2007 2:44 AM by jaikiran

    hibernate logs in jboss 4.2.2

    kosl

      Dear all,

      We have just moved our development to jboss 4.2.2. Everything works fine except that we are getting lots of logs from hibernate like:


      01:44:20,976 INFO [STDOUT] Hibernate:
      select
      cataloguee0_.id as id24_,
      cataloguee0_.name as name24_,
      cataloguee0_.paren


      I was trying to get rid of them by configuring log4j, looking in documentation and everywhere but I failed to find information how to hide those informations. I would be grateful for any advice.

      Kind Regards,

      Karol Oslowski

        • 1. Re: hibernate logs in jboss 4.2.2
          jaikiran

          1) Set show_sql = false in the hibernate.cfg.xml (or hibernate.properties)
          2) Add the following to jboss-log4j.xml:

          <category name="org.hibernate">
           <priority value="WARN"/>
           </category>