You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ElasticsearchAppender.Builder#layout is of type AbstractLayout, whereas it should have been Layout. See Log4j 2.0 FileAppender for an example. This renders ElasticsearchAppender unusable for layouts that don't extend from AbstractLayout. For instance, LogstashLayout doesn't extend from AbstractLayout class, but implements Layout<String> interface, hence the Log4j field injection failure reported in #32.
The text was updated successfully, but these errors were encountered:
I don't believe that the parameter is "mistyped". It's much easier to relax the interface than tighten one in the future (it started from JsonLayout btw).
But, to improve compatibility with other layouts, I'll relax it in 1.4.
ElasticsearchAppender.Builder#layout
is of typeAbstractLayout
, whereas it should have beenLayout
. See Log4j 2.0FileAppender
for an example. This rendersElasticsearchAppender
unusable for layouts that don't extend fromAbstractLayout
. For instance,LogstashLayout
doesn't extend fromAbstractLayout
class, but implementsLayout<String>
interface, hence the Log4j field injection failure reported in #32.The text was updated successfully, but these errors were encountered: