Hi Ismael,

> Have we considered switching to the log4j2 logging config format by
default and providing a mechanism to use the old format?

As of present, the proposal leaves the default config format switching to
sometime in the future. However, I think it is not a difficult task and is
up to the community's decision. The draft implementation already includes
log4j2 counterparts for all existing 1.x format (template) configs.
Although it still uses traditional log4j format as a default for backward
compatibility, the users who prefer the log4j2 configs can use it by
setting `export
KAFKA_LOG4J_OPTS="-Dlog4j.configurationFile={log4j2-config-file-path}"`.
Whenever we change the default logging format, we must don't forget to
switch this functionality to the reverse, i.e., making log4j 1.x format
available as an opt-in.

I am so concerned about the community's opinion when would be adequate to
make the log4j2 config as default.

Thanks,
Dongjin

+1. As a note, I have an almost-completed implementation of log4j2
equivalent for the log4j-appender. I think it would be great if this
feature can be provided with changing the default logging config format.

On Wed, Sep 16, 2020 at 11:49 PM Ismael Juma <ism...@juma.me.uk> wrote:

> Thanks for the KIP, Dongjin. Have we considered switching to the log4j2
> logging config format by default and providing a mechanism to use the old
> format? It is likely that we will release 3.0 as the release after 2.7, so
> it would provide a good opportunity to move on from the legacy config
> format. The other option is to stick with the old format for 3.0 and
> migrate to the new format in 4.0.
>
> Ismael
>
> On Wed, Aug 5, 2020 at 7:45 AM Dongjin Lee <dong...@apache.org> wrote:
>
> > Hi, Kafka dev,
> >
> > I hope to initiate the discussion of KIP-653, upgrading log4j to log4j2.
> >
> >
> >
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-653%3A+Upgrade+log4j+to+log4j2
> >
> > All kinds of feedbacks are greatly appreciated!
> >
> > Best,
> > Dongjin
> >
> > --
> > *Dongjin Lee*
> >
> > *A hitchhiker in the mathematical world.*
> >
> >
> >
> >
> > *github:  <http://goog_969573159/>github.com/dongjinleekr
> > <https://github.com/dongjinleekr>keybase:
> https://keybase.io/dongjinleekr
> > <https://keybase.io/dongjinleekr>linkedin:
> kr.linkedin.com/in/dongjinleekr
> > <https://kr.linkedin.com/in/dongjinleekr>speakerdeck:
> > speakerdeck.com/dongjin
> > <https://speakerdeck.com/dongjin>*
> >
>


-- 
*Dongjin Lee*

*A hitchhiker in the mathematical world.*




*github:  <http://goog_969573159/>github.com/dongjinleekr
<https://github.com/dongjinleekr>keybase: https://keybase.io/dongjinleekr
<https://keybase.io/dongjinleekr>linkedin: kr.linkedin.com/in/dongjinleekr
<https://kr.linkedin.com/in/dongjinleekr>speakerdeck: speakerdeck.com/dongjin
<https://speakerdeck.com/dongjin>*

Reply via email to