[Logging] Logging improvements, console silencing, terminal coloring (#3412)

This commit is contained in:
Chris Miles
2023-06-17 18:16:21 -05:00
committed by GitHub
parent d99c3145ad
commit 1e22baf267
3 changed files with 100 additions and 23 deletions
+6
View File
@@ -324,6 +324,9 @@ public:
*/
LogSettings log_settings[Logs::LogCategory::MaxCategoryID]{};
// temporary bucket to re-load after silencing
LogSettings pre_silence_settings[Logs::LogCategory::MaxCategoryID]{};
struct LogEnabled {
bool log_to_file_enabled;
bool log_to_console_enabled;
@@ -374,6 +377,9 @@ public:
[[nodiscard]] const std::string &GetLogPath() const;
EQEmuLogSys * SetLogPath(const std::string &log_path);
void DisableMySQLErrorLogs();
void EnableMySQLErrorLogs();
private:
// reference to database