I have a program that uses log4net. It logs directly in the exe folder.
Now, when passing to station with Windows > XP (Vista, Seven) I observed that the logs are not a
Instead of ${USERPROFILE} (see answer from moldovanu) you can use ${LOCALAPPDATA} or ${APPDATA}. This writes your log files to the the users AppData folder (local or roaming sub folder).
${USERPROFILE}
${LOCALAPPDATA}
${APPDATA}