-
|
Hi @osiegmar, While integrating GelfTcpAppender we are getting the below mentioned error: Stack Trace For the same: ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [de.siegmar.logbackgelf.GelfTcpAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type de.siegmar.logbackgelf.GelfTcpAppender Logback.xml Code: Dependencies Used in pom.xml: de.siegmar logback-gelf 2.0.0Java Version Used: 11 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
FYI we have also tried updating logback-gelf version to 4.0.2 however we are getting the same issue |
Beta Was this translation helpful? Give feedback.
-
|
The root cause of your stacktrace says "Caused by: java.lang.ClassNotFoundException: de.siegmar.logbackgelf.GelfTcpAppender". So it seems that the logback-gelf library is missing from your runtime classpath as that class is clearly part of the library. |
Beta Was this translation helpful? Give feedback.
-
|
@chinavolcano Please provide a link to a public GitHub repository that demonstrates the problem. For security reasons I do not download/open ZIP files. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, https://github.com/chinavolcano/xzt-test-logback-gelf/tree/main I suspect the issue stems from third-party appenders with logback's compatibility . |
Beta Was this translation helpful? Give feedback.
The root cause of your stacktrace says "Caused by: java.lang.ClassNotFoundException: de.siegmar.logbackgelf.GelfTcpAppender".
So it seems that the logback-gelf library is missing from your runtime classpath as that class is clearly part of the library.