Product: TIBCO Spotfire®
How to create a separate log file for Scheduled Updates.
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
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).
Comments
0 comments
Article is closed for comments.