1 Reply Latest reply on Aug 25, 2008 7:04 PM by peterj

    migrating from 4.0.1 to 6.4.2.3 log4j configuration file

      Under conf in 6.0.1 my log4j configuration file is called log4j.xml, under the new version the file name is jboss-log4j.xml. Is there any preference as to which file name should be used to configure the log4j service under 4.2.3? I assume that they should not both be in my new installation. Is that correct?

      I couldn't find any clarification of this on the Jboss Website.

      Thanks,
      Mike

        • 1. Re: migrating from 4.0.1 to 6.4.2.3 log4j configuration file
          peterj

          In 4.2.3, only the jboss-log4j.xml file will be used - log4j.xml, if it appears, will be ignored.

          By the way, the file used to initialize log4j can be declared in jboss-service.xml - edit these lines:

          <mbean code="org.jboss.logging.Log4jService" ...>
           <attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>
           . . .
           </mbean>