0 Replies Latest reply on Apr 27, 2011 12:06 AM by holstadius

    Application logging using log4j and JBoss 6.0.0

    holstadius Newbie

      I have been trying to get our own appender to work with JBoss 6.

       

      We have few different things that we need to deploy on JBoss, wars and jars.

       

      We have written our own appender that we need to use for our logging, a type of syslog appender but with some extra features.

       

      I have tried to follow http://docs.jboss.org/process-guide/en/html/logging.html, but always get an error when trying to start up JBoss, coming from

      the myapp.war/WEB-INF/jboss-web.xml

       

      Have also tried a couple of other howTos but without any luck.

       

      Have gotten to a point where I see that our log4j.properties file is being found by looking at the logs, but it seems like the JBoss logger wrapps our

      logger like :

       

      21:01:56,623 INFO  [STDOUT] APPLICATION_LOG - 2011-04-26 21:01:56,623 INFO  [Thread-3] org.jboss.resteasy.spi.ResteasyDeployment Adding scanned resource: com...

       

      So it looks like it can find one of the appenders our log4j.properties file, but seems like it is just taking the message from it and not actually performing the correct tasks.

       

      Erik