Hi Deepak,

Sorry, I slightly misunderstood what you were asking. Kafka currently
supports log4jv1 out of the box. You've said you've switched to using
log4jv2, so I guess you could do this via JMX[1], or having log4j poll for
updates to the config file[2]. This is really a log4j question rather than
a Kafka question. Assuming you're using the distributed herder you'll need
to update each of the nodes in the connect cluster.

Kind regards,

Tom

[1]: https://logging.apache.org/log4j/2.x/manual/jmx.html
[2]: http://logging.apache.org/log4j/1.2/faq.html#a3.6

On Tue, Jul 28, 2020 at 11:49 AM Deepak Raghav <deepakragha...@gmail.com>
wrote:

> Hi Tom
>
> Can you please reply to this.
>
> Regards and Thanks
> Deepak Raghav
>
>
>
> On Mon, Jul 27, 2020 at 10:05 PM Deepak Raghav <deepakragha...@gmail.com>
> wrote:
>
> > Hi Tom
> >
> > I have to change the log level at runtime i.e without restarting the
> > worker process.
> >
> > Can you please share any suggestion on this with log4j.
> >
> > Regards and Thanks
> > Deepak Raghav
> >
> >
> >
> > On Mon, Jul 27, 2020 at 7:09 PM Tom Bentley <tbent...@redhat.com> wrote:
> >
> >> Hi Deepak,
> >>
> >> https://issues.apache.org/jira/browse/KAFKA-9366 already proposes to
> >> replace log4j with log4j2 throughout Kafka.
> >>
> >> Kind regards,
> >>
> >> Tom
> >>
> >> On Mon, Jul 27, 2020 at 2:04 PM Deepak Raghav <deepakragha...@gmail.com
> >
> >> wrote:
> >>
> >> > Hi Team
> >> >
> >> > Request you to please have a look.
> >> >
> >> > Regards and Thanks
> >> > Deepak Raghav
> >> >
> >> >
> >> >
> >> > On Thu, Jul 23, 2020 at 6:42 PM Deepak Raghav <
> deepakragha...@gmail.com
> >> >
> >> > wrote:
> >> >
> >> > > Hi Team
> >> > >
> >> > > I have some source connector, which is using the logging provided by
> >> > > kafka-connect framework.
> >> > >
> >> > > Now I need to change the log level dynamically at runtime i.e
> without
> >> > > restarting the worker process.
> >> > >
> >> > > I found out that changing log level is not possible with log4j, so I
> >> > > decided to upgrade to log4j2, could you please help me with this.
> >> > >
> >> > >
> >> > > Regards and Thanks
> >> > > Deepak Raghav
> >> > >
> >> > >
> >> >
> >>
> >
>

Reply via email to