6 Replies Latest reply on Sep 23, 2008 5:51 AM by michaelchan

    Why debug messages in my webapp is in boot.log

    michaelchan

      Why debug messages in my webapp is in boot.log? I didn't tell jboss to direct debug messages to the file. I have a custom log4j.properties for which I use to configure log4j and start up jboss with the additional JAVA_OPTS as follow:

      JAVA_OPTS="$JAVA_OPTS -Dlog4j.configuration=file:/Developments/jboss_AS/jboss-4.2.3.GA/server/default/deploy/myApp.war/resources/log4j.properties"

      Content of log4j.properties:

      log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
      log4j.appender.CONSOLE.Target=System.out
      log4j.appender.CONSOLE.Threshold=INFO
      log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
      log4j.appender.CONSOLE.layout.ConversionPattern=%-5p [%X{RemoteAddr}] (%X{Tenant}) [%c{1}] %m%n
      log4j.rootLogger=INFO, CONSOLE
      log4j.logger.org.springframework.aop.framework.Cglib2AopProxy=error, CONSOLE
      log4j.api.link=http\://logging.apache.org/log4j/docs/api/
      



      Jboss do pick up the settings, but it still logs in boot.log, is there anyway to stop it? because this is reducing performance.