Exporting Logs to a File
To export plug-in logs to a file, modify the logback.xml
.
- Procedure
- Navigate to the
<BW_HOME>\bw\<version_number>\config\design\logback
directory and open thelogback.xml
file.Note: When deploying an application in TIBCO Enterprise Administrator, you must navigate to theTIBCO_HOME\bw\domains\mydomain\appnodes\myspace\mynode
directory to find thelogback.xml
file. - Add the following node to specify the file location:
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> <file>c:/.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: You also need to add the file name in the file path. - 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>
- Save the file.