-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Inner class name be a logger name can not config level #714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I presume you are setting those properties in <configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
<logger name="org.springframework.kafka" level="debug" />
<logger name="org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer" level="info" />
</configuration> |
This works...
|
Or like this with yaml: logging:
level:
org.springframework.kafka: debug
org.springframework.kafka.listener.[KafkaMessageListenerContainer$ListenerConsumer]: info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java
Line 718 in 7d85c56
When I setting logging
it will log repeat.
There is no way to disable that because the logger name is a inner class name
org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer
and configis not work
The text was updated successfully, but these errors were encountered: