Пример #1
0
 public SimpleException(SimpleException InnerException, Guid CorrelationId, string ApplicationName, string ProcessName, string Message)
 {
     Type = GetType().FullName;
     this.CorrelationId   = CorrelationId;
     this.ApplicationName = ApplicationName;
     this.ProcessName     = ProcessName;
     this.Message         = Message;
     StackTrace           = Environment.StackTrace;
     this.InnerException  = InnerException;
 }
Пример #2
0
 public void Log(Guid CorrelationId, SimpleException Exception, LogLevel LogLevel)
 {
     if (_traceLoggers != null)
     {
         foreach (var logger in _traceLoggers)
         {
             logger?.Log(CorrelationId, Exception, LogLevel);
         }
     }
 }
Пример #3
0
 public void Log(SimpleException Exception, LogLevel LogLevel)
 {
     if (_traceLoggers != null)
     {
         foreach (var logger in _traceLoggers)
         {
             logger?.Log(Exception, LogLevel);
         }
     }
 }
Пример #4
0
 public void Log(Guid CorrelationId, SimpleException Exception, LogLevel LogLevel) => Log(CorrelationId, Exception.GetSummary(true, true), LogLevel, _settings.SendTraceMessagesToConsole);