Log into a file

By default all logs are saved in the SecureTransport database and can be explored from the SecureTransport Administration Tool. To save logs to a file, edit $FILEDRIVEHOME/conf/tm-log4j.xml and add the following lines after the last appender block.

<appender name="FileBasedLog" class="com.tumbleweed.st.server.logging.DailyRollingFileAppender">

    <param name="File" value="/opt/TMWD/SecureTransport/var/logs/file-based_log.log" />

    <param name="Append" value="true" />

    <param name="DatePattern" value="'.'yyyy-MM-dd" />

    <param name="RotateDirectory" value="/opt/TMWD/SecureTransport/var/db/hist/logs" />

     <layout class="org.apache.log4j.PatternLayout">

         <param name="ConversionPattern" value="%d %p [%t] %c - %m%n" />



Make sure to change the File and RotateDirectory values to meet your environment set-up.

When ready, restart the SecureTransport TM service for the change to take effect.

Related topics:

Related Links