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; }
public void Log(Guid CorrelationId, SimpleException Exception, LogLevel LogLevel) { if (_traceLoggers != null) { foreach (var logger in _traceLoggers) { logger?.Log(CorrelationId, Exception, LogLevel); } } }
public void Log(SimpleException Exception, LogLevel LogLevel) { if (_traceLoggers != null) { foreach (var logger in _traceLoggers) { logger?.Log(Exception, LogLevel); } } }
public void Log(Guid CorrelationId, SimpleException Exception, LogLevel LogLevel) => Log(CorrelationId, Exception.GetSummary(true, true), LogLevel, _settings.SendTraceMessagesToConsole);