Exporting Logs to a File

Modify the logback.xml file to export plug-in logs to a file.

Procedure

  1. Navigate to the TIBCO_HOME\bw\version\config\design\logback directory and open the logback.xml file.
    Note: When deploying an application in TIBCO® Enterprise Administrator, you have to navigate to the TIBCO_HOME\bw\domains\mydomain\appnodes\myspace\mynode directory to find the logback.xml file.
  2. Specify the file location by adding the following node to:
    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
       <file>c:/bw6.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 is the absolute path of the file.
    Note: You must add the file name in the file path.
  3. Enable export of the logs to a file by adding the following node to the root node at the end of the logback.xml file:
    	<appender-ref ref="FILE" />
    <root level="ERROR">
       <appender-ref ref="STDOUT" />
       <appender-ref ref="FILE" />
    </root>
  4. Save the file.