<br><font size=2 face="sans-serif">Thanks Macon,</font>
<br>
<br><font size=2 face="sans-serif">That is the information I was looking
for. &nbsp;I was looking at the code and it looked like there were some
comments hinting at making the SystemEventListener configurable. &nbsp;Is
this a future feature? or am I reading too much into the comments?</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3>Steve Ronderos </font>
<br>
<br><tt><font size=2>rules-users-bounces@lists.jboss.org wrote on 10/01/2009
10:30:58 AM:<br>
<br>
&gt; [image removed] </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: [rules-users] (no subject)</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Pegram, Macon </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; to:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Rules Users List</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 10/01/2009 10:34 AM</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Sent by:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; rules-users-bounces@lists.jboss.org</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Please respond to Rules Users List</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; What you need to do is implement your own SystemEventListener <br>
&gt; implementation to override the default one. &nbsp;Before you do anything
<br>
&gt; meaningful with Drools, you’ll want to override the default by calling:</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp;SystemEventListenerFactory.setSystemEventListener(&lt;YOUR
<br>
&gt; SystemEventListenerImpl&gt;);</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; Here’s a basic no-op listener:</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new
SystemEventListener () {</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void debug(String arg0) { }</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void debug(String arg0, Object arg1) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void exception(Throwable arg0) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void exception(String arg0, Throwable arg1) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void info(String arg0) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void info(String arg0, Object arg1) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void warning(String arg0) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public void warning(String arg0, Object arg1) {}</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; </font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; In reality what you probably want to do is hook
in your <br>
&gt; application’s logger here so it will respect the same log levels
the<br>
&gt; rest of your application runs under.</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; Macon</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; From: rules-users-bounces@lists.jboss.org [</font></tt><a href="mailto:rules-users-"><tt><font size=2>mailto:rules-users-</font></tt></a><tt><font size=2><br>
&gt; bounces@lists.jboss.org] On Behalf Of Steve Ronderos<br>
&gt; Sent: Wednesday, September 30, 2009 12:53 PM<br>
&gt; To: rules-users@lists.jboss.org<br>
&gt; Subject: [rules-users] (no subject)</font></tt>
<br><tt><font size=2>&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Hello Drools Users, <br>
&gt; <br>
&gt; I've been looking into why Drools 5 is logging debug and info <br>
&gt; messages to System.out in my app and trying to figure out how to <br>
&gt; make it stop. &nbsp;It looks like the SystemEventListener that the
<br>
&gt; SystemEventListenerFactory returns is a <br>
&gt; DelegatingSystemEventListener that delegates to a <br>
&gt; PrintStreamSystemEventListener. &nbsp;This, by default, uses System.out
<br>
&gt; as the print stream target. &nbsp;I looked into the Factory and it
looks <br>
&gt; like I can provide a different SystemEventListener or <br>
&gt; SystemEventListenerProvider, but it also mentions that it did not
<br>
&gt; find anything in the properties, so it fails over to the default <br>
&gt; SystemEventListenerProvider. &nbsp;Is there a way to configure a custom
<br>
&gt; SystemEventListener or SystemEventListenerProvider so that you don't<br>
&gt; have to call <br>
&gt; SystemEventListenerFactory.setSystemEventListenerProvider() at startup?
<br>
&gt; <br>
&gt; Thanks, <br>
&gt; <br>
&gt; Steve Ronderos_______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; rules-users@lists.jboss.org<br>
&gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt>