Hi, everyone here:
I have written a workflow method like following:
the method is used in BPM automatic activity.
I created a method object with properties: "Run as Server", "Use method Server", "Use as workflow method"
-------------------------------------------------------------------------------
package com.mycom.nh.method;
...
/**
* Start multiple workflow instance .
* @author Administrator
*
*/
public class StartEquipmentCreation extends WorkflowMethod {
...
protected int doTask(IDfWorkitem workitem, IDfProperties arg1, PrintWriter arg2)
throws Exception {
...
DfLogger.debug(this,"StartEquipmentCreation method...",null, null);
}
...
}
I add some configurations in C:\Documentum\config\log4j.properties like:
#method logger
log4j.logger.com.mycom.nh.method=DEBUG, methodfile, methodconsole
log4j.appender.methodconsole=org.apache.log4j.ConsoleAppender
log4j.appender.methodconsole.layout=org.apache.log4j.PatternLayout
log4j.appender.methodconsole.layout.ConversionPattern=%d %5p [%t] %c - %m%n
log4j.appender.methodfile=org.apache.log4j.RollingFileAppender
log4j.appender.methodfile.File=C\:/Documentum/logs/method.log
log4j.appender.methodfile.MaxFileSize=10MB
log4j.appender.methodfile.layout=org.apache.log4j.PatternLayout
log4j.appender.methodfile.layout.ConversionPattern=%d %5p [%t] %c - %m%n
I can't see any log message in any log file.
I have checked :
C:\Documentum\product\5.3\tomcat\logs\stdout.log
C:\Documentum\product\5.3\tomcat\logs\locahost_log.2010-05-05.txt
c:\Documentum\logs\log4j.log
C:\Documentum\logs\method.log (the file was created but has no content.)
Does anyone know how to configure the log4j for workflow method?
thanks in advanced.