1 Reply Latest reply on Nov 1, 2006 4:40 AM by torarnek

    Strange console output when using my own Log4j config file

    torarnek

      Hello!

      I am configuring my log4j with an xml file where I define an appender who prints to system output. (I see the output in the eclipse-console)

      <appender name="MyCon"class="org.apache.log4j.ConsoleAppender">







      I load this file using DOMConfigurator.configure(log4jFile.getPath());

      The strange thing is that my output looks like this:

      10:26:54,497 INFO [STDOUT] 10:26:54,497 DEBUG [MyClass] some text

      It always prints this "10:26:54,497 INFO [STDOUT]" in front of my debug info.

      This is quite annoying, so I wonder if you have any suggestions on how I can fix this?

      Thank you very much!

      Best regard,
      Tor

        • 1. Re: Strange console output when using my own Log4j config fi
          torarnek

          My appender was lost in my posting, so I am sending it again here.

          And by the way I am using JBoss 4.0.4.GA. :)

          < appender name="MyCon" class="org.apache.log4j.ConsoleAppender">
          < param name="Target" value="System.out" />
          < param name="Threshold" value="DEBUG" />
          < layout class="org.apache.log4j.PatternLayout">
          < param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n" />
          < /layout>
          < /appender>