public void Crash(CrashLevel level, Exception exception, string caller, string message, params object[] args) { var logLevel = level == CrashLevel.Critical ? LogLevel.Critical : LogLevel.Error; this.logger.Log(logLevel, exception, $"Crash: {message}", args); var errorSourceId = exception.GetBaseException().TargetSite?.ToString(); if (errorSourceId.Exists()) { this.measurer.Count($"Exceptions: {errorSourceId}"); } this.crasher.Crash(level, exception, caller, message, args); }
public void Crash(CrashLevel level, Exception exception, string caller) { Crash(level, exception, caller, exception.Message); }
public virtual void Crash(CrashLevel level, Exception exception, string caller) { }
public virtual void Crash(CrashLevel level, Exception ex, string message, string caller, params object[] args) { }
public void Crash(CrashLevel level, Exception exception, string caller, string message, object[] args) { }