diff options
author | emmauss <emmausssss@gmail.com> | 2019-01-31 04:49:15 +0200 |
---|---|---|
committer | gdkchan <gab.dark.100@gmail.com> | 2019-01-30 23:49:15 -0300 |
commit | c81abdde4c48c607669580ef769776623b86dcc7 (patch) | |
tree | 03a599b9ff513bbf0eeef10402f1b36fd9a70c7a /Ryujinx.Common/Logging/Logger.cs | |
parent | c1bdf19061ec679aa3c69eda2a41337e3e809014 (diff) |
Add file logging and handle unhandled exceptions (#558)
* add unhandled exception handler
* added file logging
* add option in config
* consolidated console and file log
Diffstat (limited to 'Ryujinx.Common/Logging/Logger.cs')
-rw-r--r-- | Ryujinx.Common/Logging/Logger.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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<LogEventArgs> Updated; + public static bool EnableFileLog { get; set; } + static Logger() { m_EnabledLevels = new bool[Enum.GetNames(typeof(LogLevel)).Length]; |