2014-10-28 05:36:00 -02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-16 21:38:14 -08:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-28 05:36:00 -02:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-06-24 02:58:49 +03:00
|
|
|
#include <filesystem>
|
2018-02-19 17:51:27 -07:00
|
|
|
#include "common/logging/filter.h"
|
2023-06-24 02:00:26 +03:00
|
|
|
|
2023-06-24 01:51:16 +03:00
|
|
|
namespace Common::Log {
|
2014-10-28 05:36:00 -02:00
|
|
|
|
2023-06-24 02:58:49 +03:00
|
|
|
class Filter;
|
2023-06-24 02:00:26 +03:00
|
|
|
|
2023-06-24 02:58:49 +03:00
|
|
|
/// Initializes the logging system. This should be the first thing called in main.
|
|
|
|
void Initialize();
|
2020-05-09 19:05:12 +05:30
|
|
|
|
2023-06-24 02:58:49 +03:00
|
|
|
void DisableLoggingInTests();
|
2020-05-09 19:05:12 +05:30
|
|
|
|
2018-02-19 17:51:27 -07:00
|
|
|
/**
|
2023-06-24 02:58:49 +03:00
|
|
|
* The global filter will prevent any messages from even being processed if they are filtered.
|
2014-10-28 05:36:00 -02:00
|
|
|
*/
|
2023-06-24 02:27:24 +03:00
|
|
|
void SetGlobalFilter(const Filter& filter);
|
2023-06-24 02:58:49 +03:00
|
|
|
|
|
|
|
void SetColorConsoleBackendEnabled(bool enabled);
|
2023-06-24 01:51:16 +03:00
|
|
|
} // namespace Common::Log
|