2 Replies Latest reply on Jun 25, 2010 6:46 AM by Elhanan Maayan

    location of log4j.xml in an ear?

    Elhanan Maayan Novice



      i must admint i've been strugling with this thing for some time.


      should an ear contain a log4j.xml file at all?


      our ear has this file, but we also have jboss-log4j file, problem, there is a collision between, i can see no debug messages from my ear (com.pnx*) only when i "touch" the jboss lo4j file i can see them.

      the jboss log4j has this:

      <appender name="PMPCONSOLE">
                 <param name="Target" value="System.out"/>
                 <param name="Threshold" value="DEBUG"/>
                    <!-- The default pattern: Date Priority [Category] Message\n -->
                    <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>


      <category name="com.pnx" additivity="false">       
              <appender-ref ref="PMPCONSOLE"/>
              <appender-ref ref="SocketAppender"/>


      this same ear should also go inside webpshere, and as far as i know , it's doesn' have an external log4j file, so i'm a little confused about the configuration here.