I am using %property% to set the output file path in the Log4Net configuration file. A log file will be created in the APP data folder every time when the application launches. I am using the Composite rolling style for rolling the files.
But now my requirement is to roll/change the file path based on some user interactions in the application. How can I achieve this, can anyone suggest me to achieve this.
- How to roll the file in c# code. The expected behavior is similar to rolling based on Size and date.
- What is the c# code to change the output file path in Log4Net in between program execution?
Please let me know if my requirement is not clear.
Thanks.