Disabling log traces in Java SE

You can set the JDK logger, the XU logger, and Java™ SE rule sessions to write no logging information to the execution traces when rulesets are executed in a Java SE environment.

About this task

By default, Java SE rule sessions generate log traces through three different processes. To remove any trace, you must disable the JDK logger, the XU logger, and the logger that you might have attached to instances of stateless Java rule session factories.

Procedure

  1. To disable the JDK logging service, set the logging level to OFF. For more information about Java logging, refer to the Sun Developer Center.
  2. To remove the few messages that are sent to the JCA logger during the initialization of the execution unit (XU) (even if the JDK logger is used), locate the relevant XU XML descriptor and set the traceLevel property to OFF.

    Even if you disable the JDK logging service and the execution trace, some information is still logged. To log nothing at all, use the API for rule session factories in a Java SE context, as explained next.

  3. Pass the null value to the IlrJ2SESessionFactory constructor on stateless Java rule session factories.
    IlrJ2SESessionFactory sessionFactory = new IlrJ2SESessionFactory(null);