How to configure multiple logback logging configurations for TIBCO Streaming/LiveView applications

How to configure multiple logback logging configurations for TIBCO Streaming/LiveView applications

book

Article ID: KB0073069

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10.6 and later

Description

A TIBCO Streaming/LiveView application requires multiple custom logging configurations, each to be used in different environments/scenarios. How can the correct logging configuration be specified when installing the node?
 

Issue/Introduction

Outlines the steps needed to manage multiple logback logging configurations for a TIBCO Streaming/LiveView application.

Resolution

Store each custom logback configuration in its own directory on the system. For example..
C:/logconfigs/info/logback.xml
C:/logconfigs/debug/logback.xml
C:/logconfigs/trace/logback.xml
Then in your node install command, specify the appropriate directory using the deploydirectories option. For example..
epadmin install node nodename=your.node nodedirectory=nodes application=app-archive.zip deploydirectories=C:/logconfigs/debug/
This will ensure that the logback.xml stored in C:/logconfigs/debug will be selected as your custom logging configuration. You can confirm this is working properly by searching the resulting console output for a message like..
[main] INFO  com.tibco.ep.dtm.lifecycle - Using user-specified Logback configuration class path resource "logback.xml" at file:/C:/logconfigs/debug/logback.xml


 

Additional Information

For more details, refer to the Help under Home > StreamBase Admin Guide > StreamBase Logging > Using StreamBase Logging > (sub-heading) Custom Configuration for Logback Logging.