[jboss-user] [JBossWS] - Re: wstools and Log4J

sam.griffith@jboss.com do-not-reply at jboss.com
Sun Dec 10 05:41:39 EST 2006


Martin,

I'm not sure about the C# calls failure, but as far as the log appender, you can put the following log4j code in a log4j.xml file in your WS build dir so it gets packaged up with your WS when deployed and it'll be used as the appender. You don't have an appender defined for the WSTools so this one will serve as a default. I'll try and look into a more correct way to define the logger for WSTools when it's being invoked but in the mean time this should help get rid of that message.


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  | <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
  | 
  | <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
  | <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  | <param name="Target" value="System.out"/>
  | <param name="Threshold" value="INFO"/>
  | 
  | <layout class="org.apache.log4j.PatternLayout">
  | <!-- The default pattern: Date Priority [Category] Message\n -->
  | <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  | </layout>
  | </appender>
  | 
  | 
  | <root>
  | <appender-ref ref="CONSOLE"/>
  | </root>
  | 
  | 
  | </log4j:configuration>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992514#3992514

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992514



More information about the jboss-user mailing list