Log4j2 logging in Selenium Java Framework using Log4j2 Properties & Log4j2 xml
This video tutorial is about #log4j2 with #log4j2.xml and #log4j2.properties file configuration Example. Where you will learn how to get Log4j2 up and running instantaneously with Maven dependencies and also how to log different types of events/logs such as error, warning, info, debug and so on in #selenium #webdriver test scripts and in #seleniumframework using log4j 2 framwork.
Log4j 2 xml and log4j 2 properties examples: sdetadda.blogspot.com/2023/02...
Below are the Playlists in this channel -
#testng + Selenium 4 Tutorial -2022/2023 🔥🔥🔥 : • TestNG + Selenium 4 Tu...
#playwright Framework Tutorial - 2023 : • Playwright Framework T...
#karate Framework Tutorial: • Karate Framework Tutorial
Top 100 Java programs for programming and coding Interviews: • Top 100 Java programs ...
Thank you for watching the video 🙏, I hope that you found it informative.
Don't forget to like 👍, comment 💬, share and subscribe, do press the bell icon 🔔 for the earliest updates of my new videos.
If you have any doubts regarding the topics that we covered, do tell in the comments section, I will make sure to reply at the earliest.
Contact me at email : rmishraqa@gmail.com
#Basic Log4j2 Configuration
#Configuring Log4j 2
#log4j2 java
#log4j logging levels
#Log4J2 How It Works
#log4j #seleniumframework
#Log4j2
#LoggingFramework
#Log4j2.properties
#Log4j2.xml
#selenium
#maven
#SeleniumWebDriver
Пікірлер: 32
It almost took 1 hour of mine to fix the issue before watching this. Thanks a lot buddy!
It worked. Thanks a lot.
@sdetadda
Жыл бұрын
Glad to hear that.
Much awaited it was , thank you!
@sdetadda
Жыл бұрын
Welcome.
Thank you.!
@sdetadda
Жыл бұрын
Welcome.
Very useful 👍
Wow! Excellent explanation. Thank you.
Excellent tutorial video! Thank you. 🙏👍
Thank you so much❤
Excellent video...in one go it was implemented Pls tell one thing. How we can make the value of append as False in properties file ? I want a new log file everytime
Is there any specific reason to add webdrivermanager dependency? because Selenium 4.6 and above support same lib itself.
I'm using Java project but I'm not able to creat log folder and log file as well. Everything I have written log method is coming under console window only.
Hello, In my can it is generating the .log file but not adding any logs in the console and vice-versa. any solution?
Please could you share the repository with the solution? thanks!
how to create custom log-manager with this code? can you please create video about this?
How to create log files based on the test case name. Is there any way to pass test case dynamically at the time of running.
Sir, getting below exception: java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31) ~[netty-common-4.1.92.Final.jar:4.1.92.Final] using java 17 selenium webdriver 4.10.0 log4j-core and log4j-apr latestversion 2.20 please help why i am getting this error.
@sdetadda
Жыл бұрын
Will take a look and revert to you.
Why log4j is used for?
@sdetadda
Жыл бұрын
It is used to provide logging functionality and help in debugging the test scripts. Hope it was useful. Please do recommend this channel to your friends and colleagues. Thanks.
Sir could you please provide code link
@sdetadda
Жыл бұрын
Will push the code to git or to some common path soon and provide the link in description of this video.
no debug info coming :(
@sdetadda
8 ай бұрын
Hi, Did you follow all the steps in the video? What exactly are you getting, any error as such?
@hardeepsinghnegi63
8 ай бұрын
Hi, it's resolved now ..thank you 😊
Appender.file.name Appender.file.filename What is the difference between these Could u please explain
Itdidn't work for my.. not sure why . here my log4j.xml file %d{HH:mm:ss.SSS} [%t] %-5level - %msg%n
@amruthashekar3544
10 ай бұрын
Check where you have added log4j.xml file, if its in separate resource folder not in the src/main/resource then you need to add that resource folder to your project build path, then it will works.I also faced the same issue its resolved now.