I am using log4net and I was to save the log file in the AppData file for win XP/Vista etc.
This is my app.config file so far, and I have specified the name softphon
User %appdata%. So your code will look like -