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.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-07-02 23:17:03 +00:00
|
|
|
#include <string_view>
|
2018-02-20 00:51:27 +00:00
|
|
|
#include "common/logging/filter.h"
|
2023-06-23 23:00:26 +00:00
|
|
|
|
2023-06-23 22:51:16 +00:00
|
|
|
namespace Common::Log {
|
2014-10-28 07:36:00 +00:00
|
|
|
|
2023-06-23 23:58:49 +00:00
|
|
|
class Filter;
|
2023-06-23 23:00:26 +00:00
|
|
|
|
2023-06-23 23:58:49 +00:00
|
|
|
/// Initializes the logging system. This should be the first thing called in main.
|
2023-07-02 23:17:03 +00:00
|
|
|
void Initialize(std::string_view log_file = "");
|
2020-05-09 13:35:12 +00:00
|
|
|
|
2023-06-24 08:41:53 +00:00
|
|
|
void Start();
|
|
|
|
|
2023-06-23 23:58:49 +00:00
|
|
|
void DisableLoggingInTests();
|
2020-05-09 13:35:12 +00:00
|
|
|
|
2018-02-20 00:51:27 +00:00
|
|
|
/**
|
2023-06-23 23:58:49 +00:00
|
|
|
* The global filter will prevent any messages from even being processed if they are filtered.
|
2014-10-28 07:36:00 +00:00
|
|
|
*/
|
2023-06-23 23:27:24 +00:00
|
|
|
void SetGlobalFilter(const Filter& filter);
|
2023-06-23 23:58:49 +00:00
|
|
|
|
|
|
|
void SetColorConsoleBackendEnabled(bool enabled);
|
2023-06-23 22:51:16 +00:00
|
|
|
} // namespace Common::Log
|