Enabling JDK logging in Java SE

To define how the activity of JDK processes is logged, you can create a properties file.

About this task

You can enable log traces for the JDK activity independently of the execution unit (XU) logger in a properties file.

Procedure

  1. Create a .properties file.

    This is a plain text file, as specified by the Java™ API. You can give it any name, for example here logging.properties. In this file, you can specify handlers and logging levels.

  2. Set the logging level to one of the values that are available in the Java API.

    For more information about the Java logging API, see the Oracle Technology Network for Java Developers External link opens a new window or tab

    For example, you can set the default log level for the root logger as follows: .level = ALL
  3. Run your rule application with option -Djava.util.logging.config.file=<properties_file_name> so that the configuration is taken into account.

    For example: -Djava.util.logging.config.file=logging.properties