2 Replies Latest reply on Dec 12, 2008 3:48 PM by nvkanaskar

    logging

      hello All

      i am using jboss 4.0.0.
      I need to turn on selective logging
      where only debug sys.out statements
      from java code would be written in log file.
      I tried - setting the THRESHOLD value
      to 'DEBUG' in server/default/conf/log4j.xml.
      But this puts all the unnecessary logging -
      hibernate queries and all other - into the server.log.
      making the file size into above 500 MB.
      Any help would be appreciated in this.

      I want to log only sys.out from the java code,
      and nothing else.

      Thanks.

        • 1. Re: logging
          jaikiran

          You can turn off the logging from unwanted packages in the log4j.xml by setting their level to OFF. For example, if you want to disable Hibernate3 logging, you can add:

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


          • 2. Re: logging

            Thanks a lot Jaikiran.
            Got an idea now.
            Sorry, could not reply in time for
            health reasons.