2014-10-28 07:36:00 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-28 07:36:00 +00:00
|
|
|
// Refer to the license.txt file included.
|
2021-06-13 14:31:47 +00:00
|
|
|
|
2014-10-28 07:36:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-07-02 17:10:41 +00:00
|
|
|
#include "common/logging/filter.h"
|
2021-06-13 11:52:02 +00:00
|
|
|
|
2021-04-15 00:19:52 +00:00
|
|
|
namespace Common::Log {
|
2014-10-28 07:36:00 +00:00
|
|
|
|
2015-05-12 05:19:44 +00:00
|
|
|
class Filter;
|
|
|
|
|
2021-08-13 18:39:45 +00:00
|
|
|
/// Initializes the logging system. This should be the first thing called in main.
|
|
|
|
void Initialize();
|
2018-07-02 17:10:41 +00:00
|
|
|
|
2021-11-02 00:36:27 +00:00
|
|
|
void Start();
|
|
|
|
|
2021-08-13 18:39:45 +00:00
|
|
|
void DisableLoggingInTests();
|
2018-07-02 17:10:41 +00:00
|
|
|
|
|
|
|
/**
|
2021-08-13 18:39:45 +00:00
|
|
|
* The global filter will prevent any messages from even being processed if they are filtered.
|
2018-07-02 17:10:41 +00:00
|
|
|
*/
|
|
|
|
void SetGlobalFilter(const Filter& filter);
|
2021-08-13 18:39:45 +00:00
|
|
|
|
|
|
|
void SetColorConsoleBackendEnabled(bool enabled);
|
|
|
|
} // namespace Common::Log
|