1 Reply Latest reply on May 17, 2002 5:24 AM by Susan

    problems with trace logging in jboss244

    Susan Newbie

      Hi!

      I'm trying to get the log.trace messages on console and log-file.

      But it doesn't work, although I changed the entries in log4j.properties:

      log4j.rootCategory=TRACE, LogFile, Console

      ### The server.log file appender
      log4j.appender.LogFile=org.apache.log4j.RollingFileAppender
      log4j.appender.LogFile.Threshold=TRACE
      log4j.appender.LogFile.File=../log/server.log
      log4j.appender.LogFile.layout=org.apache.log4j.PatternLayout
      # Use the default JBoss format
      log4j.appender.LogFile.layout.ConversionPattern=[%d{ABSOLUTE},%c{1}] %m%n
      # Truncate if it aleady exists.
      log4j.appender.LogFile.Append=false

      ### The console appender
      log4j.appender.Console=org.jboss.logging.log4j.ConsoleAppender
      log4j.appender.Console.Threshold=TRACE
      log4j.appender.Console.layout=org.apache.log4j.PatternLayout
      log4j.appender.Console.layout.ConversionPattern=[%p,%c{1}] %m%n

      log4j.category.org.jboss.deployment=TRACE#org.jboss.logging.TracePriority


      With this configuration there should be the log.trace messages og org.jboss.deployment in the logfile and on the console.
      But there where only info, debug, warn and error messages

      Could anybody help me to show trace log (I'm using Jboss2.4.4)

      Thanks in advance
      Susan

        • 1. Re: problems with trace logging in jboss244
          Susan Newbie

          So I found in the JBossBook an example for log4jproperties. In the header there was added:

          # Set the JBossCategoryFactory as the default CategoryFactory
          log4j.categoryFactory=org.jboss.logging.log4j.JBossCategory$JBossCategoryFactory


          In the API for JBoss2.4.4 is written for JBossCategory: "..A custom log4j category that adds support for trace() level logging.."

          But I didnt found this class org.jboss.logging.log4j.JBossCategory in the /lib/ext.

          Where can I find this class??