title: How to get Class name that is calling my method?
body: <p>I want to write my own logger.</p>
  
  <p>This is my logger manager:</p>
  
  <pre><code>public static class LoggerManager
  {
      public static void Error(string name)
      {
  
      }
  }
  </code></pre>
  
  <p>I am calling <code>Error(string name);</code> method as below:</p>
  
  <pre><code>public class Foo
  {
      public void Test()
      {
          LoggerManager.Error(this.GetType().FullName);
      }
  }
  </code></pre>
  
  <p>In this way, I am geting the caller class name in my method called <code>Error</code>.</p>
  
  <p>But I don't want to pass the name to error method every time. I want to make my logger (Or another logger methods: <code>Info()</code>, <code>Warn()</code>) method get the name by itself.</p>
  
  <p>Thanks for your best practice...</p>