开发者

when configured in xml file, does log4net allow to specify the log file name inside the function call?

开发者 https://www.devze.com 2023-01-05 13:11 出处:网络
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 metho

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

0

精彩评论

暂无评论...
验证码 换一张
取 消