Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# 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. The default log4j configuration is 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
1. 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.
2. Clear the Enable checkbox to disable the default logging mechanism.
   Log Configurations Properties

3. Save the CDD file.
4. To use your custom log4j configuration, add the following property in the be-engine.tra file.
   This property is specified in the be-rms.tra file for RMS and in the log4j.properties file for TIBCO BusinessEvents Enterprise Administrator Agent as shipped.

       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]

Note: In TIBCO BusinessEvents, HTTP response logs are by default set to `Info` level. To get the HTTP response debug logs for JSON and similar services, you must update the `org.apache.http` logger and set its log level to `Debug` in the log4j2.xml file.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.