Overriding the Default Logging Mode
You can disable the default logging mode and use the log4j mode for logging.
After the default logging mechanism is disabled, the log4j mode for logging is automatically activated, using the default log4j configuration located at
BE_HOME\lib\ext\tpcl\apache\log4j2.xml. You can also specify your custom log4j file location to be used for logging in the
be-engine.tra file.
- Procedure
- On the
Collections tab of the project's CDD, select an existing log configuration under the Log Configurations.
For details on how to add a log configuration, see Configuring Log Configurations.The log configuration properties are displayed.
- Clear the Enable check box to disable the default logging mechanism.
- Save the CDD file.
- To use your custom log4j configuration, add the following property in the
be-engine.tra file.
java.property.log4j.configurationFile=[custom_log4j_path]
Note: If the file is not in the classpath but located elsewhere on your device, use the following path:java.property.log4j.configurationFile=file:[custom_log4j_file_path]