You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log.Error(ex,$"A crash happened at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff",CultureInfo.InvariantCulture)}{Environment.NewLine}{ex.InnerException}{Environment.NewLine}");
varvariables="";// You would need to add logic to capture variable values
762
775
763
-
Log.Error(ex,$"A crash happened at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff",CultureInfo.InvariantCulture)}{Environment.NewLine}{ex.InnerException}{Environment.NewLine}");
764
-
765
-
766
-
}
776
+
Log.Fatal(ex,$"An error occurred at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff",CultureInfo.InvariantCulture)}"+
777
+
$" Line Number: {line}, Method Name: {method}, Class Name: {className}, Variables: {variables}"+
Log.Error(ex,$"A crash happened at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff",CultureInfo.InvariantCulture)}{Environment.NewLine}{ex.InnerException}{Environment.NewLine}");
Log.Error(ex,$"A crash happened at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff",CultureInfo.InvariantCulture)}{Environment.NewLine}{ex.InnerException}{Environment.NewLine}");
0 commit comments