title: Different appenders based on build configuration in log4net
body: <p>My main application either starts in a <em>console environment</em> or as a <em>Windows Service</em>, based on certain indicators (launch flags, #if directive,...). As long as the application runs in '<em>production mode</em>', e.g. without a user context as a startup service, I want to log both in a <strong>file</strong> (info, warnings) as well as into the <strong>Windows event log</strong>. However when I'm debugging, I want log messages only been carried out to the console window.</p>
  
  <p>Is there any way to achieve this using log4net that doesn't include touching the application configuration during runtime?</p>