views:

24

answers:

1

I read through most of the related topics regarding changing log directory programmatically, but the answers were a little advanced.

My problem is trying to dynamically change where my log file is saved from my C# application. I have a text box with a browse button to choose where it should be saved.

Anyone have an idea or can point me in the right direction with some code? I've tried playing around with similar ideas but can't seem to get it right.

Thank you for your help.

Jeff

A: 

I think this is what you are looking for.

Log4Net.How can I change the file location programmatically c#?

Krunal