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 <pradhan...@gmail.com> 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, <sjmit...@gmail.com> 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 <pradhan...@gmail.com> wrote: > > > > > Any help regarding this, please? > > > > > > On Fri 21 Feb, 2020, 5:30 PM Pradhan V, <pradhan...@gmail.com> 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. > > > > > > > > > >