Implementing Log4j2 for Java Application Logging - Step-by-Step Tutorial

Implementing Log4j2 for Java Application Logging - Step-by-Step Tutorial

Automation Step by Step via YouTube Direct link

00:00 Intro

1 of 8

1 of 8

00:00 Intro

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Implementing Log4j2 for Java Application Logging - Step-by-Step Tutorial

Automatically move to the next video in the Classroom when playback concludes

  1. 1 00:00 Intro
  2. 2 00:27 Step 1 - Add Log4j2 Dependency - Log4j 2 is an improved version of Log4j with better performance & flexibility
  3. 3 04:33 Step 2 - Update dependencies by running: mvn clean install
  4. 4 05:12 Step 3 - Create log4j2.xml Configuration File in src/main/resources
  5. 5 08:46 Step 4 - Create a Logger Utility Class Log.java in src/main/java/utils
  6. 6 14:50 Step 5 - Integrate Logging into BaseTest.java
  7. 7 18:20 Step 6 - Integrate Logging into LoginPage.java
  8. 8 21:00 Step 8 - Run the Test and View Logs. Can also use cmd mvn test and check logs

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.