when configured in xml file, does log4net allow to specify the log file name inside the function call?
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 f开发者_如何学编程ile 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?
Try checking this out and see if it helps: http://geekswithblogs.net/rgupta/archive/2009/03/03/dynamic-log-filenames-with-log4net.aspx
精彩评论