Jin,
Another approach is to create a package with java services that wrap Log4J, Commons Logging or another logging implementation such the one that shipped with JDK 1.4.
This example is over 2 years old and may need a few tweaks to work with current JDK and Log4J versions, but should give you some ideas on how to do this.
Tim’s suggestion is great if you want to use the same format and general location as the standard WM logging. If you need to implement a different log message format or add additional behaviors such as logging to a JDBC or JMS datasource, you can configure those behaviors with Log4J Appenders.
Mark
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB