Question
2
Replies
23
Views
Sun Life Financial Inc
Posted: December 21, 2020
Last activity: 2 weeks 2 days ago
Change log files location according to user name
How to change this location in Appdata/Roaming folder
<file type="log4net.Util.PatternString" value="%property{ConfigurationDirectory}/%property{ProgramShortName}_Log4Net.txt" />
according to user name, Like I want to change this location and create a folder with a user name and save the log files in a folder
Example: C:\Users\XXX\Documents\UserName\%property{ProgramShortName}_Log4Net.txt
***Edited by Moderator Marissa to update Content Type from Discussion to Question***
or let me ask this a different way, Where to find "ConfigurationDirectory" in
<file type="log4net.Util.PatternString" value="%property{ConfigurationDirectory}/%property{ProgramShortName}_Log4Net.txt" />