How to enable internal log4net debug logging in Spotfire Web Player.
Solution:
How to enable internal log4net debug logging in Spotfire Web Player:
1). Follow the instructions in section the Spotfire Server documentation to export the default service configuration:
config export-service-config --capability=WEB_PLAYER--deployment-area=Production
Documentation reference: https://docs.tibco.com/pub/spotfire_server/14.6.1/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/manually_editing_the_service_configuration_files.html
2). Edit the Spotfire.Dxp.Worker.Host.exe.config file. Below the tag applicationSettings add the following (if not already present):
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add
name="textWriterTraceListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\temp\logs\log4net.txt" /> <!-- Use a path that exists -->
</listeners>
</trace>
</system.diagnostics>
<appSettings>
<!-- Do not edit these settings if you are not really sure what you are doing!
To enable log4net debug logging, set Quiet=false and Debug=true -->
<add key="log4net.Internal.Quiet" value="false" />
<add key="log4net.Internal.Debug" value="true" />
</appSettings>
Make sure to set the initializeData path to where you want the log4net debug log be written to.
3). Import the updated config to a new name by following follow the instructions in section the Spotfire Server documentation:
config import-service-config --config-name=ServiceConfiguration
Documentation reference:
4). Go to Nodes&Services page in Spotfire Server admin web console and edit all Web Player services to use the new configuration. This should automatically restart the service instances.
Comments
0 comments
Article is closed for comments.