Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the command to write your logging information into a file?



what is the command to write your logging information into a file?..

Answer / Rishav Kumar

In Log4j, you can set the 'log4j.appender.console' property in your configuration file or code to use FileAppender instead of ConsoleAppender if you want to write log messages to a file. For example: `<appender name="File" class="org.apache.log4j.RollingFileAppender">`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Log4j Interview Questions

Explain whether a log output format can be customized?

1 Answers  


what is layouts in log4j?

1 Answers  


why do you get multiple copies of the message in log file sometime?

1 Answers  


what are the system properties checked by log4j?

1 Answers  


what are the other support objects in Log4j?

1 Answers  


what are Appenders in Log4j?

1 Answers  


Inside logger component what are the different log levels?

1 Answers  


what are the different types of Appenders?

1 Answers  


what does .class mean in log4j context?

1 Answers  


what is the command to write your logging information into a file?

1 Answers  


what is the role of filter in log4j?

1 Answers  


what are the logging methods provided by logger class?

1 Answers  


Categories