mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 23:50:46 -07:00
Add file logging and handle unhandled exceptions (#558)
* add unhandled exception handler * added file logging * add option in config * consolidated console and file log
This commit is contained in:
@ -5,6 +5,7 @@ namespace Ryujinx.Common.Logging
|
||||
Audio,
|
||||
Cpu,
|
||||
Font,
|
||||
Emulation,
|
||||
Gpu,
|
||||
Hid,
|
||||
Kernel,
|
||||
|
@ -16,6 +16,8 @@ namespace Ryujinx.Common.Logging
|
||||
|
||||
public static event EventHandler<LogEventArgs> Updated;
|
||||
|
||||
public static bool EnableFileLog { get; set; }
|
||||
|
||||
static Logger()
|
||||
{
|
||||
m_EnabledLevels = new bool[Enum.GetNames(typeof(LogLevel)).Length];
|
||||
|
Reference in New Issue
Block a user