2022-07-27 22:06:50 +04:00
|
|
|
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-06-13 23:23:07 +04:00
|
|
|
|
2020-12-28 19:15:37 +04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/logging/filter.h"
|
2021-06-13 23:23:07 +04:00
|
|
|
|
2021-04-15 09:16:22 +04:00
|
|
|
namespace Common::Log {
|
2020-12-28 19:15:37 +04:00
|
|
|
|
|
|
|
class Filter;
|
|
|
|
|
2021-08-21 09:18:09 +04:00
|
|
|
/// Initializes the logging system. This should be the first thing called in main.
|
|
|
|
void Initialize();
|
2021-08-21 01:54:30 +04:00
|
|
|
|
2021-11-03 07:33:26 +04:00
|
|
|
void Start();
|
|
|
|
|
2021-08-21 09:18:09 +04:00
|
|
|
void DisableLoggingInTests();
|
2021-08-21 01:54:30 +04:00
|
|
|
|
|
|
|
/**
|
2021-08-21 09:18:09 +04:00
|
|
|
* The global filter will prevent any messages from even being processed if they are filtered.
|
2021-08-21 01:54:30 +04:00
|
|
|
*/
|
|
|
|
void SetGlobalFilter(const Filter& filter);
|
2021-08-21 09:18:09 +04:00
|
|
|
|
|
|
|
void SetColorConsoleBackendEnabled(bool enabled);
|
|
|
|
} // namespace Common::Log
|