How to create a separate log file for Scheduled Updates.

How to create a separate log file for Scheduled Updates.

book

Article ID: KB0075835

calendar_today

Updated On:

Products Versions
Spotfire Web Player 7.0 and below

Description

By default, no separate log file is created for the Scheduled Updates feature. To create it, modify the existing log4net.config file which is present on the TIBCO Spotfire Web Player Server machine under the path <Installation directory>\X.X\webroot\app_data

Issue/Introduction

How to create a separate log file for Scheduled Updates.

Environment

All Supported Operating Systems

Resolution

Configure ScheduledUpdate logger to write all its logs to a new file just like Audit log and Performance counter log. Use the following template.


<!-- New Appender for Logger Spotfire.Dxp.Web.Library.ScheduledUpdates -->
       
        <appender name="ScheduledUpdateAppender" type="log4net.Appender.RollingFileAppender">
            <PreserveLogFileNameExtension value="true"/>
            <file value="C:\Program Files\TIBCO\Spotfire Web Player\[VERSION]\Logfiles\ScheduledUpdates.log"/>
            <appendToFile value="true"/>
            <rollingStyle value="Size"/>
            <maxSizeRollBackups value="4"/>
            <maximumFileSize value="500MB"/>
            <staticLogFileName value="false"/>
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%-5level %date [%property{pid}, %thread, %property{user}] %logger - %message%newline"/>
            </layout>
           
        </appender>    
        <logger name="Spotfire.Dxp.Web.Library.ScheduledUpdates" additivity="false">
            <appender-ref ref="ScheduledUpdateAppender"/>
            <level value="INFO"/>  <!-- Change INFO to DEBUG for DBEUG level Schedule Update logging -->
        </logger>



Make sure that you take a backup of your existing log4net.config file before making any changes. You can also refer to the attached file (Filename: log4net.config).

Attachments

How to create a separate log file for Scheduled Updates. get_app