How to change log4net content for Web Player server using Silver Fabric.

How to change log4net content for Web Player server using Silver Fabric.

book

Article ID: KB0094457

calendar_today

Updated On:

Products Versions
TIBCO Silver Fabric Enabler for Spotfire Web Player -
Not Applicable -

Description

Description:
How to change log4net content for Web Player server using Silver Fabric. 

Issue/Introduction

How to change log4net content for Web Player server using Silver Fabric.

Resolution

Here are the steps:
1.) edit the Spotfire WebPlayer component in SF admin UI.
2.) select ‘Edit the Configuration File’
3.) specify the change required. For example, If one wanted to change the max file size from 500MB to 507MB at all places in log4net.config.
++++++++++++++++
<containerConfig>
      <configFiles baseDir="${ENGINE_WORK_DIR}/fabric/webroot/app_data" include="log4net.config">
       <regex pattern="500MB" replacement="507MB" />
       </configFiles>
</containerConfig>
++++++++++++++++
4.) click Finish and publish the change to the component from Action Wheel.
5.) Go to Engines > Engine tab. You will see the web player component turned red, indicating component restart required due to change.
6.) restart the component and once its up & running, check the file @ engine’s work directory. For example in this case it was: C:\qa\engine\work\win64vm239-0\fabric\webroot\app_data\log4net.config

Additional Information

TIBCO SilverFabric Developer's Guide > Chapter 2 : Using the Silver Fabric SDK : The configure.xml File