public static void Main() { Game app = new GDEApp(); DesktopGameHost host = Host.GetSuitableHost("GDE"); host.Run(app); }
public RavenLogger(GDEApp app) { Logger.NewEntry += entry => { if (entry.Level < LogLevel.Verbose) { return; } var exception = entry.Exception; if (exception != null) { if (exception is IOException ioe) { if (ioe.HResult == HandleDiskFullError || ioe.HResult == DiskFullError) { return; } } // since we let unhandled exceptions go ignored at times, we want to ensure they don't get submitted on subsequent reports. if (lastException != null && lastException.Message == exception.Message && exception.StackTrace.StartsWith(lastException.StackTrace)) { return; } lastException = exception; QueuePendingTask(raven.CaptureAsync(new SentryEvent(exception))); } else { raven.AddTrail(new Breadcrumb(entry.Target.ToString(), BreadcrumbType.Navigation) { Message = entry.Message }); } }; }