title: log4net console app not logging on publish
body: <p>I have a console app using log4net (via Castle Windsor). Everything logs fine to the console when I debug, but when I publish and run the app, nothing is logged.</p>
  
  <p>I have my log4net configuration in a separate file (log4net.config). 
  I'm thinking it's not finding the config file, but that's just a guess.</p>
  
  <p>I'm a web dev and haven't deployed many console apps. Am I missing something?
  Do I need to manually copy the log4net.config file to the exe directory?</p>
  
  <p>I'm on VS2010. </p>
  
  <p><strong>app.config:</strong></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
          &lt;section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor"/&gt;
          &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/&gt;
      &lt;/configSections&gt;
      &lt;appSettings&gt;  
          ...
          &lt;add key="log4net.Internal.Debug" value="false"/&gt;
      &lt;/appSettings&gt;
      &lt;startup&gt;        
      &lt;supportedRuntime version="v2.0.50727"/&gt;&lt;/startup&gt;
      &lt;castle&gt;
          &lt;components&gt;
              ...
          &lt;/components&gt;
          &lt;facilities&gt;
              &lt;facility id="loggingfacility" configfile="log4net.config" loggingapi="log4net" type="Castle.Facilities.Logging.LoggingFacility, Castle.Facilities.Logging"/&gt;
          &lt;/facilities&gt;
      &lt;/castle&gt;    
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>log4net.config:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;log4net&gt;
          &lt;root&gt;
              &lt;!-- Value of priority may be ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF --&gt;
              &lt;priority value="ALL" /&gt;
              &lt;appender-ref ref="ConsoleAppender" /&gt;
          &lt;/root&gt;
  
          &lt;appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender"&gt;
              &lt;layout type="log4net.Layout.PatternLayout"&gt;
                  &lt;conversionPattern value="%d: [%-5p] %m%n" /&gt;
              &lt;/layout&gt;
          &lt;/appender&gt; 
  
          &lt;logger name="Castle"&gt;
              &lt;level value="INFO" /&gt;
          &lt;/logger&gt;
      &lt;/log4net&gt;
  &lt;/configuration&gt;
  </code></pre>