2 Replies Latest reply on Apr 10, 2003 1:39 PM by riekhof

    Logging help

      I'm running a struts web app on jboss 3.0.6, tomcat 4.1.18. I'm using a method in the jakarata commons BeanUtils class, and it is dumping tons of stuff to the log. I can't determine how to shut it off or filter out all these worthless log msgs. They look like this:

      ,422 INFO [STDOUT] 352654 [Thread 11] DEBUG org.apache.commons.beanutils.BeanUtils -

      I've looked into it some, and am guessing I need to do something in jboss's conf/log4j.xml file to filter these out. What I am not sure...

      I tried putting a log4j.properties file in my WEB-INF/classes dir, but read posts that say that jboss/log4j will ignore this once jboss's log4j xml config has been read in.

      Anyone shed some light on what I can do? What would a section in the xml file look like that would filter out msgs below warning from org.apache.*?

        • 1. Re: Logging help
          wouter

          Darrel,

          You can change the threshold of your appenders in <your_server_config>/conf/log4j.xml, eg set to INFO or ERROR to avoid all DEBUG information.

          Wouter

          • 2. Re: Logging help

            I'm a bit confused, I only have 2 appenders defined, the default ones, FILE and CONSOLE, and they are both set to INFO level. But, it looks like the struts beanutils logging messages are getting nested inside of jboss log messages, even though the beanutil log messages are mostly at DEBUG level. (see my example log msg in first post).