the log4j.jar provided by MWS should be fine, you don’t need another copy of that.
Since CAF applications are web applications, you can use the techniques for initializing log4j in a servlet or context listener.
For an example, see:
[url]http://blog.idleworx.com/2010/01/setting-up-log4j-for-simple-java-web.html[/url]
your log4j.properties file content would just need to define the appender and declare what log categories go to the appender.
For example, something like this:
# your category
log4j.category.yourLogCategory=INFO, yourCustomFile
log4j.additivity.yourLogCategory=true
# appender
log4j.appender.yourCustomFile=com.webmethods.rtl.logging.CollectorFileAppender
log4j.appender.yourCustomFile.File=${log4j.logging.dir}/yourLogFileName.log
log4j.appender.yourCustomFile.threshold=${log4j.default.log.level}
log4j.appender.yourCustomFile.Append=true
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine