Open topic with navigation

TIBCO ActiveMatrix BusinessWorks™ Plug-in for Snowflake 6.3.0

# Exporting Logs to a File

To export plug-in logs to a file, modify the `logback.xml`.

Procedure
1. Navigate to the `<BW_HOME>\bwcloud\<version_number>\config\design\logback` directory and open the `logback.xml` file.
   Note: When deploying an application in TIBCO Enterprise Administrator, you must navigate to the `TIBCO_HOME\bw\domains\mydomain\appnodes\myspace\mynode` directory to find the `logback.xml` file.
2. Add the following node to specify the file location:

       <appender name="FILE" class="ch.qos.logback.core.FileAppender">
          <file>c:/snowflake.log</file>
             <encoder>
               <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}-%msg%n</pattern>
             </encoder>
       </appender>

   The `file` tag defines the location to which the log is exported, and the value in the tag is the absolute path of the file.

   Note: The file path must include the file name.
3. To enable exporting the logs to a file, add the following node to the root node at the end of the `logback.xml` file:

       <appender-ref ref="FILE" />
       <root level="DEBUG">
          <appender-ref ref="STDOUT" />
          <appender-ref ref="FILE" />
       </root>

4. Save the file.

Did you find this helpful?

Yes No
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 ActiveMatrix BusinessWorks™ Plug-in for Snowflake

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