Hi,
You have different way to do this,
example:
you add a new class
public class DroolsLogger {
public static KnowledgeRuntimeLogger fileLogger =null;
public static void verifyLogger (StatefulKnowledgeSession ksession){
if(fileLogger==null)
fileLogger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession,
"drools/logs");
}
public static void closeLogger(){
if(fileLogger!=null)
fileLogger.close();
}
}
In your main class:
DroolsLogger.verifyLogger(session)
session.fireAllRules();
DroolsLogger.closeLogger();
I hope I was clear
Regards
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Append-the-Logs-For-t...
Sent from the Drools - Dev mailing list archive at
Nabble.com.