<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I guess he refers to "4.5.2. global" in drools expert:<div>http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e3157<br><br></div><div>Cheers</div><div><br>--- El <b>vie, 3/9/10, Solingen, Stephanie <i><stephanie.solingen@atosorigin.com></i></b> escribió:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Solingen, Stephanie <stephanie.solingen@atosorigin.com><br>Asunto: Re: [rules-users] How to create logfile when using ruleAgent<br>Para: michael.anstis@gmail.com<br>CC: rules-users@lists.jboss.org<br>Fecha: viernes, 3 de septiembre, 2010 10:44<br><br><div id="yiv1119632752">
<div><span lang="EN">
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">What user guide do you
mean?</font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">I've already read this
one: <a rel="nofollow" target="_blank" href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-guvnor/html_single/index.html">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-guvnor/html_single/index.html</a></font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">But it does not say
anything about globals nor how to make a rule with Log() (instead of
System.out.println()) , so the information is added to a logfile. The only
information I've found was in de user guide of drools flow (section 5.3) <a rel="nofollow" target="_blank" href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html</a></font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">But I'm not using
ruleflow</font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">And in de Drools
Expert guide: <a rel="nofollow" target="_blank" href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html</a> in
section 3.3.5 there is information how to make an audit log, which one can view
via Eclipse.</font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">But I want to make a
simple log file (like a server.log) but for the rules I've made in Guvnor. Which
is in the system and testers can check if something strange happens or pure for
their own information. so they can watch the process without any technical
knowledge.</font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial"></font></span> </p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">I hope you can help me
further as where to find some information or example how to use a global object
that handles logging...</font></span></p>
<p><span class="yiv1119632752427410108-03092010"><font size="2" face="Arial">Or where to find the
guide your talking about...</font></span></p>
<p><font size="2" face="Arial"></font> </p>
<p><font size="2" face="Arial">Using a "global" object that handles logging would
probably be the simplest.</font></p>
<p><font size="2" face="Arial">Look at the User Guide for use of globals.</font></p>
<p><font size="2" face="Arial">2010/9/2 Solingen, Stephanie
<stephanie.solingen@atosorigin.com></font></p>
<p><font size="2" face="Arial">> Hi,</font></p>
<p><font size="2" face="Arial">></font></p>
<p><font size="2" face="Arial">> Can anyone give me a code example how to create
a logfile when using a rule</font></p>
<p><font size="2" face="Arial">> agent (rulebase) and statefulsession?</font></p>
<p><font size="2" face="Arial">> The goals is to replace all
system.out.println(); statements in de rules</font></p>
<p><font size="2" face="Arial">> with Log();</font></p>
<p><font size="2" face="Arial">> (the rules are made with the Guvnor GUI, and I
am using Guvnor 5.1 with a</font></p>
<p><font size="2" face="Arial">> oc4j server)</font></p>
<p><font size="2" face="Arial">> The text that is in de Log() should then appear
in an existing logfile.</font></p>
<p><font size="2" face="Arial">></font></p>
<p><font size="2" face="Arial">> Thanx in advance.</font></p></span></div>
<div> </div>
<div><font size="2" face="Arial"></font> </div>
</div><br>-----Adjunto en línea a continuación-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></div></td></tr></table><br>