title: Application insight NLog target
body: <p>I have console application from which I want to send custom events to my Application Insight. I want to use Application Insight NLog target (<a href="https://www.nuget.org/packages/Microsoft.ApplicationInsights.NLogTarget/" rel="nofollow">https://www.nuget.org/packages/Microsoft.ApplicationInsights.NLogTarget/</a>) but it's not working. I tried to set it via .config file and tried to set it manually:</p>
  
  <pre><code>    var config = new LoggingConfiguration();
      ConfigurationItemFactory.Default.Targets.RegisterDefinition("ai", typeof(ApplicationInsightsTarget));
      ApplicationInsightsTarget aiTarget = new ApplicationInsightsTarget();
      aiTarget.InstrumentationKey = "my_key";
      aiTarget.Name = "aiTarget";
      LoggingRule rule = new LoggingRule("*", LogLevel.Info, aiTarget);
      config.AddTarget("aiTarget", aiTarget);
      config.LoggingRules.Add(rule);
      LogManager.Configuration = config;
  </code></pre>
  
  <p>but still nothing, I can't see my exceptions or events in application insights. Any ideas? </p>