Can someone tell me how I can configure log4j to log into a specific file that I specify at runtime. The name and path of the log file are generated at runtime, and the application must register on that particular file.
Typically, the file entries in the log4j.properties file point to the log file that the application will use. However, in this case, I would like to read the path to the log file from the command line and enter this specific file.
How can i achieve this?
java log4j
Fell Aug 24 '09 at 18:49 2009-08-24 18:49
source share