[rules-dev] audit logging: instant and appendable log

Oleg Zenzin zenzin at intalio.com
Tue Oct 28 01:08:34 EDT 2008


Hi,as I've mentioned in my prev posting I'm trying to generate audit log,
and currently use drools 4.0.4.This time I have actually two questions:

1. Use of WorkingMemoryFileLogger seems to be dedicated to StatefulSession -
there's no way to keep the same log file for multiple StatelessSession
invocations.
2. Drools Eclipse plugin provides pretty nice Audit View which reads the
generated audit log file. The log file is in fact a serialized
java.util.ArrayList in form of xml. Problem is that being a well formed xml
this log file does not allow simply append new event to the end: to keep it
well formed xml I have to either completely re-write it each time a new
event is added or complicate the procedure with read the closing tag </List>
to insert the new event before. But even re-writing does not solve the
problem: the hierarchy of WorkingMemoryLogger does not allow add it to
multiple StatelessSession 's as a listener (see the constructor).

Question: is there a solution in later versions? Would you like me to
suggest my code here?

Thanks!
Oleg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20081027/9455943d/attachment.html 


More information about the rules-dev mailing list