title: Log4Net how to use both the ErrorFormat and the Error at the same time
body: <p>In log4net there are 2 very nice functions:</p>
  
  <pre><code>Log.Error("Message", myException);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Log.ErrorFormat("Message {0}", CustomerId);
  </code></pre>
  
  <p>The produce log records in the output log file very nicely. The exception one is nice because it prints a stack trace and all the exception details nicely, and the Format one is nice because it allows me to specifiy the parameters that caused the failure. Is there a "best of both worlds" method, or some way to make it?</p>
  
  <pre><code>Log.ErrorFormatEx("Message {0}", CustomerId, myException)
  </code></pre>
  
  <p>Edit: I went through the possible duplicate questions, but they are badly formatted and don't ask it exactly like this.. I was looking for an extension method or existing method </p>