Setting a logger to a Java SE rule session
You can set a logger to Java™ SE rule sessions.
About this task
Procedure
Create a Java SE
rule session factory.
FileOutputStream outFile = ...;
PrintWriter loggerPrinter = ...;
IlrJ2SESessionFactory sessionFactory = new IlrJ2SESessionFactory(loggerPrinter );
Note: You can disable the logging trace by passing the
null value
to the IlrJ2SESessionFactory constructor.Results
IlrSessionResponse.getRulesetExecutionOutput method.