In C# code, I want create a log file for each each method in my application, while normally only 1 log file is created per application. I need to specify the log file name in my method call and if its not created I create a new file and if it exists i just append the messages to the existing file?
views:
15answers:
1
A:
Try checking this out and see if it helps: http://geekswithblogs.net/rgupta/archive/2009/03/03/dynamic-log-filenames-with-log4net.aspx
spinon
2010-07-05 07:49:36
thnx 4 d reply, it does dynamically create log file but its null.log and its still one log file since the context properties will be set before we instantiate the logger. correct me if i'm wrong plz
Precious
2010-07-05 08:30:20