yuzu/src/common/logging/backend.h

26 lines
565 B
C
Raw Normal View History

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