Skip to content
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

Mistyped ElasticsearchAppender#layout field causing plugin injection errors #33

Closed
vy opened this issue Jan 13, 2020 · 2 comments
Closed

Comments

@vy
Copy link

vy commented Jan 13, 2020

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.

@rfoltyns
Copy link
Owner

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.

@rfoltyns
Copy link
Owner

rfoltyns commented Mar 7, 2020

Fixed in 1.4.

@rfoltyns rfoltyns closed this as completed Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants