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

  • @purvanshvaikunthe2148
    @purvanshvaikunthe2148 Жыл бұрын

    It almost took 1 hour of mine to fix the issue before watching this. Thanks a lot buddy!

  • @testing24x7
    @testing24x7 Жыл бұрын

    It worked. Thanks a lot.

  • @sdetadda

    @sdetadda

    Жыл бұрын

    Glad to hear that.

  • @srbmtech
    @srbmtech Жыл бұрын

    Much awaited it was , thank you!

  • @sdetadda

    @sdetadda

    Жыл бұрын

    Welcome.

  • @IAboycando
    @IAboycando Жыл бұрын

    Thank you.!

  • @sdetadda

    @sdetadda

    Жыл бұрын

    Welcome.

  • @riyashukla1717
    @riyashukla17178 ай бұрын

    Very useful 👍

  • @savinashab8935
    @savinashab893511 ай бұрын

    Wow! Excellent explanation. Thank you.

  • @debabrataroy3643
    @debabrataroy3643 Жыл бұрын

    Excellent tutorial video! Thank you. 🙏👍

  • @omprakashnaik9136
    @omprakashnaik91366 ай бұрын

    Thank you so much❤

  • @nikhilbansal1721
    @nikhilbansal172110 ай бұрын

    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

  • @ParagOak
    @ParagOak Жыл бұрын

    Is there any specific reason to add webdrivermanager dependency? because Selenium 4.6 and above support same lib itself.

  • @user-rp6qn1uk5b
    @user-rp6qn1uk5b10 ай бұрын

    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.

  • @factdebuggermind2514
    @factdebuggermind25148 ай бұрын

    Hello, In my can it is generating the .log file but not adding any logs in the console and vice-versa. any solution?

  • @RahulMishra-yb8yh
    @RahulMishra-yb8yh Жыл бұрын

    Please could you share the repository with the solution? thanks!

  • @ParagOak
    @ParagOak Жыл бұрын

    how to create custom log-manager with this code? can you please create video about this?

  • @siddabattuniharinadh1371
    @siddabattuniharinadh13715 ай бұрын

    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.

  • @SachinSharma-fr1vb
    @SachinSharma-fr1vb Жыл бұрын

    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

    @sdetadda

    Жыл бұрын

    Will take a look and revert to you.

  • @Arjun2mkap3929
    @Arjun2mkap3929 Жыл бұрын

    Why log4j is used for?

  • @sdetadda

    @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.

  • @Risekhalsa
    @Risekhalsa Жыл бұрын

    Sir could you please provide code link

  • @sdetadda

    @sdetadda

    Жыл бұрын

    Will push the code to git or to some common path soon and provide the link in description of this video.

  • @hardeepsinghnegi63
    @hardeepsinghnegi638 ай бұрын

    no debug info coming :(

  • @sdetadda

    @sdetadda

    8 ай бұрын

    Hi, Did you follow all the steps in the video? What exactly are you getting, any error as such?

  • @hardeepsinghnegi63

    @hardeepsinghnegi63

    8 ай бұрын

    Hi, it's resolved now ..thank you 😊

  • @ganeshniranjan2003
    @ganeshniranjan20036 ай бұрын

    Appender.file.name Appender.file.filename What is the difference between these Could u please explain

  • @vikassaini6459
    @vikassaini645910 ай бұрын

    Itdidn't work for my.. not sure why . here my log4j.xml file %d{HH:mm:ss.SSS} [%t] %-5level - %msg%n

  • @amruthashekar3544

    @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.