VB.NET
I have just started using log4net and I can write to my c# application.
I'm currently writing to the log file "c:\log.txt"
Defined in my .config file, but I would like to set the log file name at runtime. Can anyone help me with this?I have just started using log4net and I can write to my c# application.
I'm currently writing to the log file "c:\log.txt"
Defined in my .config file, but I would like to set the log file name at runtime. Can anyone help me with this?Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 27, 2013, 3:39 AM EST
Nitin BhardwajRank #139 · 16.1K reputationPosted Nov 27, 2013, 3:47 AM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 27, 2013, 6:13 PM EST
hi,
Please refer below link it might help you.
http://geekswithblogs.net/wpeck/archive/2009/10/08/setting-log4net-fileappender.file-at-runtime.aspx
http://www.munsplace.com/blog/2007/02/10/changing-the-log-file-location-at-runtime-with-log4net/
http://classpattern.com/log4net-dynamic-log-path.html#.UpbC4D66bIU
Kunal VaishyaRank #990 · 2K reputationPosted Nov 28, 2013, 1:04 AM EST