What is Log4j and what are its advantages

0 votes
May 22, 2019 in Selenium by Benny
3,412 views

1 answer to this question.

0 votes

Hi Benny, Log4j is a brilliant logging API available both on Java and .net framework. It is Reliable, Fast and Flexible logging framework written in Java. Some of the advantages of Log4j are:

  • Good logging infrastructure without putting in any efforts.

  • Ability to categorize logs at different levels (Trace, Debug, Info, Warn, Error and Fatal).

  • Direct logs to different outputs. For e.g. to a file, Console or a Database.

  • Lets you define the format of output logs.

  • Write Asynchronous logs which helps to increase the performance of the application.

  • Loggers in Log4j follow a class hierarchy which may come handy to your applications.

answered May 22, 2019 by Anvi
• 14,150 points

Related Questions In Selenium

0 votes
2 answers

What is a headless browser in automation testing and what are it's benefits?

Hi Sanaya, a headless browser is a web browser ...READ MORE

answered Aug 1, 2019 in Selenium by Abha
• 28,140 points
4,191 views
0 votes
1 answer

What is Apache ANT and what are its features?

Hello Deshdeepak, Ant is a Java-based Open-Source build tool ...READ MORE

answered Jul 17, 2019 in Selenium by Abha
• 28,140 points
1,275 views
0 votes
1 answer

What is Behavior Driven Development (BDD) and what are its features?

Behavior-driven development (BDD) is an Agile software development methodology within which an application is ...READ MORE

answered Nov 27, 2019 in Selenium by Sirajul
• 59,230 points
1,276 views
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Hi Piyush, XPath is defined as XML path. It is ...READ MORE

answered May 9, 2019 in Selenium by Pratibha
• 3,690 points
5,372 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,674 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,143 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,874 views
0 votes
1 answer

What is a feature file in Cucumber test and what are its components?

Hey Jagan, Feature file is a file ...READ MORE

answered Aug 27, 2019 in Selenium by Anvi
• 14,150 points
2,772 views
0 votes
1 answer

What is JUnit and what are the features of it?

Hey Irfaan, JUnit is an open source ...READ MORE

answered Jun 12, 2019 in Selenium by Anvi
• 14,150 points
12,450 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP