From c81abdde4c48c607669580ef769776623b86dcc7 Mon Sep 17 00:00:00 2001 From: emmauss Date: Thu, 31 Jan 2019 04:49:15 +0200 Subject: Add file logging and handle unhandled exceptions (#558) * add unhandled exception handler * added file logging * add option in config * consolidated console and file log --- Ryujinx.Common/Logging/LogClass.cs | 1 + Ryujinx.Common/Logging/Logger.cs | 2 ++ 2 files changed, 3 insertions(+) (limited to 'Ryujinx.Common/Logging') diff --git a/Ryujinx.Common/Logging/LogClass.cs b/Ryujinx.Common/Logging/LogClass.cs index 8739fbc6..f20347b6 100644 --- a/Ryujinx.Common/Logging/LogClass.cs +++ b/Ryujinx.Common/Logging/LogClass.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Common.Logging Audio, Cpu, Font, + Emulation, Gpu, Hid, Kernel, diff --git a/Ryujinx.Common/Logging/Logger.cs b/Ryujinx.Common/Logging/Logger.cs index 5e58f806..35ca416b 100644 --- a/Ryujinx.Common/Logging/Logger.cs +++ b/Ryujinx.Common/Logging/Logger.cs @@ -16,6 +16,8 @@ namespace Ryujinx.Common.Logging public static event EventHandler Updated; + public static bool EnableFileLog { get; set; } + static Logger() { m_EnabledLevels = new bool[Enum.GetNames(typeof(LogLevel)).Length]; -- cgit v1.2.3