Ques. What is BasicConfigurator?

- Why should we use BasicConfigurator for using log4j for some situations? Please provide any example on this.

Posted on Jul 15, 2014 by
Ans. BasicConfigurator is to print all logs in your console. Like in main/init you can keep BasicConfigurator.configure(). That's it.

For more detail check apache docs:
https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/BasicConfigurator.html
Posted on Jul 23, 2014 by Ruby Singh

Enter your Answer

Name
Email Address
Answer