title: Where are the log4net Log files?
body: <p>I have a Windows form App which write to log files using log4net. The log file path in the app.config file is defined as:</p>
  
  <pre><code>&lt;file type="log4net.Util.PatternString" value="Logs/LogFileName" /&gt;.
  </code></pre>
  
  <p>I have an msi setup project, which installs the above app. I install the App on the development machine, run the installed App, and as expected, it writes Log files under the directory, InstallDirectory/Logs/. The dev machine has a Win XP SP3 with all read write permissions.</p>
  
  <p>But when I install the same on a testing machine, which has Windows 7 and I am not sure of the permissions, there is no "Logs" directory and no log files.</p>
  
  <p>In both cases, InstallDirectory is C:\Program Files\Dir1\Dir2.</p>
  
  <p>While I try to figure out where the files are, on the test machine by adding:</p>
  
  <pre><code>log4net.Appender.FileAppender rootAppender = (log4net.Appender.FileAppender)((log4net.Repository.Hierarchy.Hierarchy)LogManager.GetRepository()).Root.Appenders[0];
  string filename = rootAppender.File;
  MessageBox.Show(filename);
  </code></pre>
  
  <p>to the code, can someone please shed some light. </p>
  
  <ul>
  <li>Why could the files be missing? </li>
  <li>Does Win 7 has any different ways to deal with new files into the Windows installed drive?</li>
  </ul>