I'd like to suggest an enhancement to Jess that should be simple to
achieve. Right now, the watch command is hard-coded to always go to
"WSTDOUT". It is occasionally desirable to redirect the output generated by
the watch command to someplace else, like a log file. You can do this by
changing the router for "WSTDOUT", but not without also redirecting
everything else that goes to "WSTDOUT", like the Jess prompt.

My suggestion is to create a new Jess-defined I/O router, "WSTDWATCH",
which is used for all output generated by the watch command. It would be
initialized to standard output and then optionally redirected elsewhere by
the user. This modification should require only a small addition to the
Router class and a modification to the Rete.eventHappened method.

George A. Williamson Jr.
Decision Technologies Group (DTG), IT
Union Pacific Railroad
[EMAIL PROTECTED]

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to