Title: RE: JESS: Output routers in a servlet

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, it must have been a misunderstanding on my part.  Your solution works perfectly well within a servlet btw.

Thanks,
Bryan


>
>Well, let's see. This might be another case where something is crystal
>clear to me but unfortunately not to anyone else. By default, WSTDERR
>is connected to System.out, not System.err; so the two lines of code
>below have precisely no effect. The manual ought to explicitly state
>this, I think; there, I just added it.
>
>Also, (and this the manual does say) Jess doesn't use "t" to print
>watches and prompts and things; it uses "WSTDOUT". Jess also uses
>"WSTDERR" to print error messages. So you want to attach these two
>routers to System.err, like this:
>
>PrintWriter err = new PrintWriter(System.err);
>rete.addOutputRouter("WSTDOUT", err);
>rete.addOutputRouter("WSTDERR", err);
>rete.addOutputRouter("t", err);
>
>Now, I don't know if this will properly connect to JServ's logs or
>not, but at least you'll definitely have all the output going to
>System.err.
>


=====================================================================
WARNING: This message warps space and time in its vicinity.
=====================================================================
         "I think not!" said Descartes, who promptly disappeared.


-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.2

iQA/AwUBOTgZx0zuKKcxAa+OEQKZaQCfXZ+iXDnTjTSPftiEBnlY1Q0qtRwAn1T1
nAZr91gO4qnCiZdCSvT0LO9i
=vrRC
-----END PGP SIGNATURE-----

Reply via email to