You can take a look at org.drools.audit.WorkingMemoryFileLogger (the default file logger) and create your own class that implements WorkingMemoryLogger or even extends WorkingMemoryFileLogger.



Best, 

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Tue, Sep 21, 2010 at 5:03 AM, marton.bokor <marton.bokor@gfthu.com> wrote:

Hi All,
I have
logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "rulelog");

But actually I would like to create audit logs for all process instances
with a different file name.
Is it possible to create log files per process instance.
Or the only way to do this is to create a seperate session for all
processes?
Is it possible to close the log file automatically when a process flow has
finished it's execution.

Thanks,
Marton
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/instance-level-logger-tp1533864p1533864.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users