Please clarify the following for me-
(1) I want to use a rollingfile appender, that too in such a way that the actual log file (to which log4j should send its messages) is passed as parameter by end user at run time. Can you give me some sample code to do the above?
(2) Which all classses have to be imported to accomplish the requirement as per point 1? (3) If there is something that I should be careful/aware about while using rolling file appender, kindly tell me that as well. (4) The application in which I want to use log4j has multiple different classes... I want to log all messages to the same log file... Is it possible to use the same log file across different java classes? How do I invoke an existing logger to write data to the same log file (same file to which another class in code is writing the log messages to)?
Kindly give a code sample that I can directly use in my application.