Re: How to set the log level of Kafka clients?

2020-02-23 Thread Sachin Mittal
There are lot of resources over the internet suggesting how to do that. I
would advise you to look over some. A simple search should lead you to them.


On Sun, Feb 23, 2020 at 10:14 PM Pradhan V  wrote:

> Thank you, Sachin.
>
> Yes, I use Java based Producer/Consumer and came to know that the log4j
> properties file name can be provided in the Java runtime option as -
> Dlog4j.configuration=log4propertiesFile.
>
> Any pointers on whether or how it can be done programmatically would be
> greatly helpful.
>
> Regards,
> Pradhan.
>
> On Sun 23 Feb, 2020, 10:04 PM Sachin Mittal,  wrote:
>
> > I use log4j properties. I think there must be a way to pass log4j
> settings
> > programmatically as well.
> > If you are using java based producers/consumers then you can set log4j
> > properties and make them available to you classpath before starting those
> > applications.
> >
> >
> >
> > On Sun, Feb 23, 2020 at 9:54 PM Pradhan V  wrote:
> >
> > > Any help regarding this, please?
> > >
> > > On Fri 21 Feb, 2020, 5:30 PM Pradhan V,  wrote:
> > >
> > > > Hi,
> > > >
> > > > How can the log level of the Kafka clients (Producers/Consumers) be
> > set?
> > > >
> > > > Is it by using a log4j.properties file? Or, is there a way it can be
> > > > programmatically set, as well?
> > > >
> > > > What are the possible options that are presently available to
> configure
> > > > the log level of the clients?
> > > >
> > > > Thanks,
> > > > Pradhan.
> > > >
> > >
> >
>


Re: How to set the log level of Kafka clients?

2020-02-23 Thread Pradhan V
Thank you, Sachin.

Yes, I use Java based Producer/Consumer and came to know that the log4j
properties file name can be provided in the Java runtime option as -
Dlog4j.configuration=log4propertiesFile.

Any pointers on whether or how it can be done programmatically would be
greatly helpful.

Regards,
Pradhan.

On Sun 23 Feb, 2020, 10:04 PM Sachin Mittal,  wrote:

> I use log4j properties. I think there must be a way to pass log4j settings
> programmatically as well.
> If you are using java based producers/consumers then you can set log4j
> properties and make them available to you classpath before starting those
> applications.
>
>
>
> On Sun, Feb 23, 2020 at 9:54 PM Pradhan V  wrote:
>
> > Any help regarding this, please?
> >
> > On Fri 21 Feb, 2020, 5:30 PM Pradhan V,  wrote:
> >
> > > Hi,
> > >
> > > How can the log level of the Kafka clients (Producers/Consumers) be
> set?
> > >
> > > Is it by using a log4j.properties file? Or, is there a way it can be
> > > programmatically set, as well?
> > >
> > > What are the possible options that are presently available to configure
> > > the log level of the clients?
> > >
> > > Thanks,
> > > Pradhan.
> > >
> >
>


Re: How to set the log level of Kafka clients?

2020-02-23 Thread Sachin Mittal
I use log4j properties. I think there must be a way to pass log4j settings
programmatically as well.
If you are using java based producers/consumers then you can set log4j
properties and make them available to you classpath before starting those
applications.



On Sun, Feb 23, 2020 at 9:54 PM Pradhan V  wrote:

> Any help regarding this, please?
>
> On Fri 21 Feb, 2020, 5:30 PM Pradhan V,  wrote:
>
> > Hi,
> >
> > How can the log level of the Kafka clients (Producers/Consumers) be set?
> >
> > Is it by using a log4j.properties file? Or, is there a way it can be
> > programmatically set, as well?
> >
> > What are the possible options that are presently available to configure
> > the log level of the clients?
> >
> > Thanks,
> > Pradhan.
> >
>


Re: How to set the log level of Kafka clients?

2020-02-23 Thread Pradhan V
Any help regarding this, please?

On Fri 21 Feb, 2020, 5:30 PM Pradhan V,  wrote:

> Hi,
>
> How can the log level of the Kafka clients (Producers/Consumers) be set?
>
> Is it by using a log4j.properties file? Or, is there a way it can be
> programmatically set, as well?
>
> What are the possible options that are presently available to configure
> the log level of the clients?
>
> Thanks,
> Pradhan.
>


How to set the log level of Kafka clients?

2020-02-21 Thread Pradhan V
Hi,

How can the log level of the Kafka clients (Producers/Consumers) be set?

Is it by using a log4j.properties file? Or, is there a way it can be
programmatically set, as well?

What are the possible options that are presently available to configure the
log level of the clients?

Thanks,
Pradhan.