Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Need for a message encoder #73

Open
PankajRoy1983 opened this issue Nov 29, 2018 · 1 comment
Open

Need for a message encoder #73

PankajRoy1983 opened this issue Nov 29, 2018 · 1 comment
Labels

Comments

@PankajRoy1983
Copy link

HI, I am trying to use

INFO

%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n

ERROR 👍
20:39:54,018 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@71dac704 - A "ch.qos.logback.classic.encoder.PatternLayoutEncoder" object is not assignable to a "com.github.danielwegener.logback.kafka.encoding.KafkaMessageEncoder" variable.
20:39:54,018 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@71dac704 - The class "com.github.danielwegener.logback.kafka.encoding.KafkaMessageEncoder" was loaded by
20:39:54,018 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@71dac704 - [org.springframework.boot.loader.LaunchedURLClassLoader@5d099f62] whereas object of type
20:39:54,018 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@71dac704 - "ch.qos.logback.classic.encoder.PatternLayoutEncoder" was loaded by [org.springframework.boot.loader.LaunchedURLClassLoader@5d099f62].

Tried with different

instead, but still not working :

ERROR in ch.qos.logback.core.joran.spi.Interpreter@39:25 - no applicable action for [producerConfig], current ElementPath is [[configuration][appender][producerConfig]]
ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an AppenderAttachable at the top of execution stack. Near [appender-ref] line 42
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:169)

can you please assist

@danielwegener
Copy link
Owner

Looks like you are using a recent configuration example for an "old" logback-kafka-appender dependency (< 0.2.0). Can you please provide the relevant appender section from your logback configuration?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants