[ 
https://issues.apache.org/jira/browse/LOG4J2-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16131193#comment-16131193
 ] 

Mikael Ståldal commented on LOG4J2-2020:
----------------------------------------

I don't think that's layout is very useful together with KafkaAppender. I think 
that you want something like GelfLayout, JsonLayout or (heaven forbid) 
SerializedLayout.

Similar to JmsAppender, which now has no default.

> Remove default layout from KafkaAppender
> ----------------------------------------
>
>                 Key: LOG4J2-2020
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2020
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.8.2
>            Reporter: Mikael Ståldal
>            Assignee: Mikael Ståldal
>             Fix For: 2.9
>
>
> If you don't specify any layout to KafkaAppender, it will simply include the 
> log message as payload. This is not very useful and inconsistent with how 
> other appenders work.
> It's better if there is no default layout for KafkaAppender, as will be the 
> case for SocketAppender and JmsAppeder now when LOG4J2-1958 is done.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to