1 Reply Latest reply on May 12, 2002 3:03 AM by Filippo

    RC2: curious behaviour logging custom categs

    Filippo Newbie

      I'm running jboss3.0RC2 and using standard org.jboss.logging.Logger.
      I've created in log4j.xml the following items:
      - an appender from class org.apache.log4j.FileAppender
      with that writes to customlog.log
      - a custom category whit and <appender-ref>
      referencing the preceding appender
      My DemoBean ejb logs different types of events ranging from INFO to FATAL.
      I expected only FATAL events would be logged in console, server.log and customlog.log
      Instead I've ever found the following result even when varying the category's priority:
      Console: 20:08:34,960 ERROR [DemoBean] there was ERROR
      20:08:34,960 FATAL [DemoBean] there was FATAL
      Server.log 2002-05-09 20:08:34,960 ERROR [test.ejb.DemoBean] there was ERROR
      2002-05-09 20:08:34,960 FATAL [test.ejb.DemoBean] there was FATAL
      customlog.log 2002-05-09 20:08:34,960 FATAL [test.ejb.DemoBean] there was FATAL

      Changing 'org.jboss' category's priority gives the expected results, so there is either something
      that overrides my custom category or something that makes my category not full parsed.

      Any idea would be appreciated.