logstash-logback-encoder: WARNINGs/ERRORs output with logback 1.1.7
From @Martin-Wegner…
Running the following config…
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<timestamp>
<fieldName>timestamp</fieldName>
</timestamp>
<logLevel>
<fieldName>logLevel</fieldName>
</logLevel>
<threadName>
<fieldName>threadName</fieldName>
</threadName>
<loggerName>
<fieldName>loggerName</fieldName>
</loggerName>
<callerData>
<classFieldName>className</classFieldName>
<methodFieldName >methodName</methodFieldName>
<fileFieldName>[ignore]</fileFieldName>
<lineFieldName>lineNumber</lineFieldName>
</callerData>
<message />
<stackTrace>
<fieldName>stackTrace</fieldName>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<exclude>java\..*</exclude>
<exclude>net\.sf\.cglib\..*</exclude>
<exclude>org\.springframework\..*</exclude>
<exclude>sun\..*</exclude>
<maxDepthPerThrowable>30</maxDepthPerThrowable>
<rootCauseFirst>true</rootCauseFirst>
</throwableConverter>
</stackTrace>
</providers>
</encoder>
produces the below errors with logback 1.1.7
Warning: Class 'net.logstash.logback.composite.loggingevent.LogLevelJsonProvider' contains multiple setters for the same property 'fieldNames'.
Warning: Class 'net.logstash.logback.composite.loggingevent.ThreadNameJsonProvider' contains multiple setters for the same property 'fieldNames'.
Warning: Class 'net.logstash.logback.composite.loggingevent.LoggerNameJsonProvider' contains multiple setters for the same property 'fieldNames'.
Warning: Class 'net.logstash.logback.composite.loggingevent.CallerDataJsonProvider' contains multiple setters for the same property 'fieldNames'.
Warning: Class 'net.logstash.logback.composite.loggingevent.MessageJsonProvider' contains multiple setters for the same property 'fieldNames'.
Warning: Class 'net.logstash.logback.composite.loggingevent.StackTraceJsonProvider' contains multiple setters for the same property 'fieldNames'.
20:50:41,230 |-ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION
20:50:41,230 |-ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION
20:50:41,231 |-ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION
20:50:41,231 |-ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION
Running the same configuration using logback 1.1.6 does not produce these warnings/errors
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 7
- Comments: 16 (1 by maintainers)
Until these errors are fixed in logback, I can only recommend using logback 1.1.6
It looks like that logback is dead because of no activitiy since May 😦
My warnings are all fixed in 1.1.8 😃
Just a note: it’s not dead, Ceki resumed commits on 4th November 2016. No news on http://jira.qos.ch/browse/LOGBACK-1164 yet though.
It seems that the bug is fixed here: commit/2ba396a20e44d2f but won’t be rolled out until 1.1.8 comes out.