title: Custom EventSources built using the (string name) base constructor aren't logging
body: <p>I'm trying to implement ETW with a custom class based on <a href="https://msdn.microsoft.com/en-us/library/system.diagnostics.tracing.eventsource(v=vs.110).aspx" rel="nofollow noreferrer">EventSource</a> (as is the intended design). I'm seeing logs just fine when using the <a href="https://msdn.microsoft.com/en-us/library/hh393385(v=vs.110).aspx" rel="nofollow noreferrer">base constructor</a></p>
  
  <pre><code>public class TestSource : EventSource
  {
      public static readonly TestSource Log = new TestSource();
  
      public TestSource() : base() { }
  
      public void LogMe(string msg)
      {
          WriteEvent(1, msg);
      }
  }
  </code></pre>
  
  <p>but when I switch to using the <a href="https://msdn.microsoft.com/en-us/library/dn823283(v=vs.110).aspx" rel="nofollow noreferrer">constructor that lets you define the name</a></p>
  
  <pre><code>    public TestSource() : base("TestSource") { }
  </code></pre>
  
  <p>Logs no longer appear.</p>
  
  <p>I'm not having issues in the constructor (<a href="https://msdn.microsoft.com/en-us/library/system.diagnostics.tracing.eventsource.constructionexception(v=vs.110).aspx" rel="nofollow noreferrer">I've used the flag to throw construction errors</a>) or when calling to write out the log (<a href="https://msdn.microsoft.com/en-us/library/system.diagnostics.tracing.eventsourcesettings(v=vs.110).aspx" rel="nofollow noreferrer">used the flag for this as well</a>). Further, <a href="https://msdn.microsoft.com/en-us/library/hh393388(v=vs.110).aspx" rel="nofollow noreferrer">IsEnabled</a> is "true" once I've added the source to the Diagnostic Events window in Visual Studio.</p>
  
  <p>Thus, the source registers correctly, and the Write method executes successfully, but the log is never actually sent. Everything appears to be the same as when I use <code>base()</code>, but logs won't appear unless I use that constructor. Is there something I'm missing, or is this a bug?</p>
  
  <p>Per sulyman's request for the whole code, this is in a WebApi controller running in a Service Fabric service:</p>
  
  <pre><code>public class TestController : ApiController
  {
      [EventSource(Name = "TestSource")]
      public class TestSource : EventSource
      {
          public static readonly TestSource Log = new TestSource();
  
          public TestSource() : base()
          {
          }
  
          public void LogMe(string msg)
          {
              WriteEvent(1, msg);
          }
      }
  
      public IEnumerable&lt;string&gt; Get()
      {
  
          TestSource.Log.LogMe("Hello!");
          return new string[] {"value1", "value2"};
      }
  }
  </code></pre>
  
  <p>(That version works, because it's using the parameterless constructor.)</p>