| ILOG JRules User Guide > Managing Rule Execution Server > Tasks > Monitoring Rule Execution Server Events > Setting a Logger to a J2SE Rule Session |
Setting a Logger to a J2SE Rule Session |
PREVIOUS NEXT |
It is relatively easy to set a logger to a J2SE rule session.
To attach a logger to a stateless rule session instance
Using the rule engine API (IlrContext) the Context.out stream is automatically attached to System.out in a J2SE application. When you use the rule session API this output stream is captured by the session. It is available in the IlrSessionExecutionResult as a string as it is considered part of the execution result. The stream can be obtained using the getOutputString method.
On the other hand the logger that you pass when you create a rule session provider is used by the Execution Unit (XU) for logging its activity. The Context.out is not directed to this stream.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |