Beispiel #1
0
 /// <inheritdoc />
 public void Log(LocalLoggerSeverity severity, string componentId, string text)
 {
     if (disposeCount <= 0 && writer != null && !string.IsNullOrEmpty(text))
     {
         if (string.IsNullOrEmpty(componentId))
         {
             componentId = "unknown";
         }
         try
         {
             writer?.WriteLineAsync(string.Format(CultureInfo.InvariantCulture, "[{0:yyyy-MM-dd HH:mm:ss.fff}]\t{1}\t{2}\t{3}\t{4}", DateTime.Now, NativeMethods.GetCurrentThreadId(), severity.ToString(), componentId, text));
         }
         catch
         {
         }
     }
 }
Beispiel #2
0
 /// <inheritdoc />
 public void Log(LocalLoggerSeverity severity, string componentId, string text)
 {
 }