Definition at line 22 of file CrashWatcher.cs.
23 {
26 {
28 {
30 Console.
Write(
string.Concat(
"================\r\n" + $
"{DateTime.Now}: First-Chance Exception\r\nThread: {Thread.CurrentThread.ManagedThreadId} [{Thread.CurrentThread.Name}]\r\nCulture: {Thread.CurrentThread.CurrentCulture.Name}\r\nException: {text2}\r\n",
"================\r\n\r\n"));
31 }
32 };
34 {
36 Console.
Write(
string.Concat(
"================\r\n" + $
"{DateTime.Now}: Unhandled Exception\r\nThread: {Thread.CurrentThread.ManagedThreadId} [{Thread.CurrentThread.Name}]\r\nCulture: {Thread.CurrentThread.CurrentCulture.Name}\r\nException: {text}\r\n",
"================\r\n"));
38 {
40 }
41 };
42 }
static void Write(string format, object? arg0)
static bool LogAllExceptions
static CrashDump.Options CrashDumpOptions
static string PrintException(Exception ex)
References Terraria.Utilities.CrashWatcher.CrashDumpOptions, Terraria.Utilities.CrashWatcher.DumpOnCrash, Terraria.Utilities.CrashWatcher.DumpPath, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs.Exception, System.UnhandledExceptionEventArgs.ExceptionObject, Terraria.Utilities.CrashWatcher.LogAllExceptions, Terraria.Utilities.CrashWatcher.PrintException(), System.text, System.Console.Write(), Terraria.Utilities.CrashDump.WriteException(), and System.Console.WriteLine().
Referenced by Terraria.Program.SetupLogging().