title: When using wrapper, how to preserve class and method name for Log4Net to log?
body: <p>I need a Log4net wrapper - to be exposed to a number of different components in a large app. I obviously want to retain the class and method name when logging but I would keep away of passing down type etc to my wrapper. </p>
  
  <p>I had a look at <a href="https://stackoverflow.com/questions/157232/how-to-log-methodname-when-wrapping-log4net">this question</a> which is very similar to mine, but it didn't help.</p>
  
  <p>I've seen it done in <a href="https://stackoverflow.com/questions/1520820/can-this-simple-log4net-wrapper-be-improved">this other question</a> with smt like the following:</p>
  
  <pre><code>MethodBase methodBase = new StackTrace().GetFrame(1).GetMethod();
  this.log.Debug(methodBase.Name + " : " + message);
  </code></pre>
  
  <p>This is not ideal since it's not using the out-of-the-box Log4Net functionality.</p>
  
  <p>I'd like to get an idea of how people are doing this before I go for the tangent and come up with something very complicated. Any pointers (links/resources/samples) appreciated!</p>