Log4j2 logging in Selenium Java Framework using Log4j2 Properties & Log4j2 xml

preview_player
Показать описание


Below are the Playlists in this channel -

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.

#Basic Log4j2 Configuration
#Configuring Log4j 2
#log4j2 java
#log4j logging levels
#Log4J2 How It Works
#log4j #seleniumframework
#Log4j2
#LoggingFramework
#selenium
#maven
#SeleniumWebDriver
Рекомендации по теме
Комментарии
Автор

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

purvanshvaikunthe
Автор

Wow! Excellent explanation. Thank you.

savinashab
Автор

Excellent tutorial video! Thank you. 🙏👍

debabrataroy
Автор

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

nikhilbansal
Автор

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.

SangeethaR-zy
Автор

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

factdebuggermind
Автор

Sir, getting below exception:
Reflective setAccessible(true) disabled
at

using java 17 selenium webdriver 4.10.0 log4j-core and log4j-apr latestversion 2.20
please help why i am getting this error.

SachinSharma-frvb
Автор

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.

siddabattuniharinadh
Автор

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

ParagOak
Автор

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

ParagOak
Автор

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

RahulMishra-ybyh
Автор

Sir could you please provide code link

Risekhalsa
Автор

Appender.file.name
Appender.file.filename

What is the difference between these
Could u please explain

ganeshniranjan
Автор

Itdidn't work for my.. not sure why . here my log4j.xml file

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level - %msg%n"/>
</Console>
<File name="File" append="true">
<PatternLayout>
<Pattern>%d{HH:mm:ss.SSS} [%t] %-5level - %msg%n</Pattern>
</PatternLayout>
</File>
</Appenders>
<Loggers>
<Logger level="info" additivity="true">
<AppenderRef ref="Console"/>
</Logger>
<Root level="info">
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>

vikassaini