RE: ConsoleAppender and want to write some specific logs in my log file


Two questions from log4j:-

1. Like what is the use of ConsoleAppender whether I have already able to see the output on console.
2. By using FileAppender in my log4j.xml, I am able to write all logs in logfile.log . But what if I am only want to write some specific logs in my log file..

shubham Train Asked on September 16, 2014 in Selenium WebDriver.

Please mark your questions as ANSWERED, if your query is resolved.

Lakshay Sharma

on September 18, 2014.
Add Comment
3 Answers


Then in your code write the logger code only in those specific places which you want them to appear in your log file.

Vishal S

Doctor Answered on September 17, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.