How to troubleshoot logback configuration errors in TIBCO Streaming

How to troubleshoot logback configuration errors in TIBCO Streaming

book

Article ID: KB0073068

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10.6 and later

Description

I get an error when starting my TIBCO Streaming application, indicating my logback configuration is invalid:

2021-08-20 14:18:23.280000-0400 [14544:main] WARN  com.tibco.ep.dtm.lifecycle: TIBCO-EP-DTM-00007: 
user-specified Logback configuration class path resource "logback.xml" at file:/C:/logconfigs/debug/logback.xml is invalid, 
using product default configuration
I have reviewed my logback.xml, but I do not see why it is invalid. How can I troubleshoot further?
 

Resolution

Use the logback.statusListenerClass Java system property to get more detailed log messages, which should help reveal why the configuration is deemed invalid. You can set this property in your StreamBase Engine HOCON configuration as follows:
StreamBaseEngine = {
        jvmArgs = [
            "-Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener"
        ]
    }
You should now see additional ch.qos.logback.* messages in the console output, for example:
14:06:51,975 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@d737b89 - There is no conversion class registered for conversion word [process]
14:06:51,975 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@d737b89 - [process] is not a valid conversion word
14:09:23,822 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@35dab4eb - There is no conversion class registered for conversion word [transaction]
14:09:23,823 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@35dab4eb - [transaction] is not a valid conversion word

Issue/Introduction

Outlines the steps needed to get more detailed logging from Logback to troubleshoot issues with a Logback logging configuration.

Additional Information

Logback Documentation Reference