- To have log4net write to the temp directory
http://stackoverflow.com/questions/1524340/how-to-get-log4net-to-generate-log-files-when-running-as-non-administrator-user
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="${TMP}\log.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="100KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level [%date] %message%newline" />
</layout>
</appender>
or <file value="${HOMEPATH}\log.txt" />