title: EventLog WriteEntry does not write to designated log, but to Application log
body: <p>I have an application where I want to write entries to event log
  The logger is instantiated through MEF.
  I created a derived class, to be able to perform the log initializations prior of using it.</p>
  
  <p>My code is as below:</p>
  
  <pre><code>public class WinEventLog : EventLog, ILogger
  {
      private const string LOG_SourceName = "DataGen_Source";
      private const string LOG_SysLogName = "Pool_Log";
  
      private bool _isInitialized = false;
  
      public WinEventLog()
          : base()
      {
          Initialize();
      }
  
      public void LogMessage(MessageLevel level, string message)
      {
          WriteEntry(message, level.EventLogType());
      }
  
      public void LogMessage(string source, MessageLevel level, string message)
      {
          WriteEntry(source, message, level.EventLogType());
      }
  
      public void Initialize()
      {
          if (!_isInitialized)
          {
              this.BeginInit();
              this.EndInit();
  
              if (!System.Diagnostics.EventLog.SourceExists(LOG_SourceName))
              {
                  System.Diagnostics.EventLog.CreateEventSource(
                      LOG_SourceName, LOG_SysLogName);
              }
              Source = LOG_SourceName;
              Log = LOG_SysLogName;
              _isInitialized = true;
          }
      }
  } 
  </code></pre>
  
  <p>However, the logger does not write into the log I specify, Pool_Log, but in Applications log.</p>
  
  <p>Any idea why this happens?</p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>I referenced EXACT the same component from other project, and in this situation it wrote to the correct EventLog !!!  </p>
  
  <p>I'm puzzled!</p>
  
  <p>Thanks</p>