Example #1
0
        static void WriteTelemetry()
        {
            WriteTrace("some message");
            WriteEvent("some event");
            WriteException(new Exception("some exception"));

            TelemetryLogger.Flush();       // more efficient not to flush, but ok for playing ;-)
        }
Example #2
0
 static void WriteException(Exception exception)
 {
     TelemetryLogger.LogException(exception);
 }
Example #3
0
 static void WriteEvent(string eventName)
 {
     TelemetryLogger.LogEvent(eventName);
 }
Example #4
0
 static void WriteTrace(string message)
 {
     TelemetryLogger.LogTrace(message);
 }