예제 #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);