Exemplo n.º 1
0
 /// <summary>
 /// Emit the provided log event to the sink.
 /// </summary>
 /// <param name="logEvent">The log event to write.</param>
 public void Emit(LogEvent logEvent)
 {
     // this logs the message & its metadata to application insights
     _loggingController.LogMessageWithData(logEvent.RenderMessage(_formatProvider), logEvent, new JsonConverter[] { ApplicationInsightsDictionaryJsonConverter.Instance });
 }