Setup Log4J logging in Selenium Java with example
Today we will go through step by step process on how to include log4j logging mechanism into a selenium project.
Here we create log4j properties file where we set up the log levels i.e. logger and later we define the appenders for both console and log file and we also define formatters.
Later a java example is written with log4j.properties file is included in the selenium example and we see the loggers logging into both console and the log file.
For more details please watch the video below
Here we create log4j properties file where we set up the log levels i.e. logger and later we define the appenders for both console and log file and we also define formatters.
Later a java example is written with log4j.properties file is included in the selenium example and we see the loggers logging into both console and the log file.
For more details please watch the video below
Comments
Post a Comment