Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Created by Guest
Created on Jun 2, 2017

Log both normal, debug and trace logs by default

Update the default log configuration on Spotfire Server so that separate log files are generated at debug and trace levels. We often find that troubleshooting difficult issues requires access to debug or trace logs and without those logs to hand you have to change settings then reproduce issues. This sometimes isn't possible since problems aren't directly reproducible (e.g. occur at "random" times due to hard to identify reasons).

 

We run our servers with debug and trace logs permanently created and don't see significant performance impact. We capture the "regular" logs to our log consolidation tool which allows us to rapidly search for problems, then we can hone in to the debug and/or trace logs when we know specific servers and timeframes to review. We also run with a default of 100 log files stored since they can get recycled relatively quickly (especially trace logs). this requires quite a bit of disk space, but storage is cheap compared with the time it saves when troubleshooting.

 

I've attached a log4j2.xml configuration file for 7.9 where I've attempted to set up logs for all three levels based on the settings in the property files. In some cases I'm not convinced that all the logs are necessary (e.g. does trace level logging really change anything in the performance logs?)

  • Attach files
  • Guest
    Reply
    |
    Jun 30, 2017

    Nice one! Thanks for the config file, I need to update the config file for 7.9...