title: How to know if log4net has logged an error
body: <p>I use log4net in my console application, I use <code>log.Error("Message to log");</code> multiple times in if/else structures.<br>
  My application has to return a code which specifies if an error has occurred during the run of the application (0 → ok, 1 → at least 1 error occurred).<br>
  Is there a way to ask log4net if it logged an error, for instance:</p>
  
  <pre><code>bool b = LogManager.AtLeastOneErrorHasBeenLogged;
  </code></pre>