Comming to the point.I've got a major problem in log4j i.e to send a parameter to log4j so that it could generate random files( Using file appender ).
My problem is : -
I've got a user of id 47.He sends a file "Blah.xls".The file tracking Id for that ("Blah.xls") file is "EFG123".So, inorder to track the file status i need to log a log file using log4j ("I'm thinking like to create a new log file using file appender") like user-id_file-Tracking-ID.log.
Similarly for another user of id 48 I need to create a different log with his user-id and file-Tracking-ID("randomly generated - don't bother").
So,can i pass any parameter to log4j.xml and create logs dynamically instead of using java code.
Please do not post the same question to multiple forums, and take care to post in a forum that's relevant to the question (log4j ha snothing to do with Web services): CarefullyChooseOneForum
Let's continue the discussion in this duplicate thread, where you have an answer already.