I can’t seem to find a definitive answer/example on how I can log to a file in appdata
C:\Documents and Settings\All Users\Application Data\CompanyName\ApplicationName\Logs\app.log
I don’t want to “hardcode” the path in the app.config and would rather use Environment.SpecialFolder.CommonApplicationData
Yes, take a look at my answer to this question. It explains in detail how to configure this path setup in log4net configuration.