2020-12-28 10:15:37 -05:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
2021-06-13 15:23:07 -04:00
|
|
|
|
2020-12-28 10:15:37 -05:00
|
|
|
#pragma once
|
|
|
|
|
2021-05-08 03:49:31 -04:00
|
|
|
#include <filesystem>
|
2020-12-28 10:15:37 -05:00
|
|
|
#include "common/logging/filter.h"
|
2021-06-13 15:23:07 -04:00
|
|
|
|
2021-04-15 01:16:22 -04:00
|
|
|
namespace Common::Log {
|
2020-12-28 10:15:37 -05:00
|
|
|
|
|
|
|
class Filter;
|
|
|
|
|
2021-08-16 07:42:12 -04:00
|
|
|
/// Initializes the logging system. This should be the first thing called in main.
|
|
|
|
void Initialize();
|
2020-12-28 10:15:37 -05:00
|
|
|
|
2021-08-16 07:42:12 -04:00
|
|
|
void DisableLoggingInTests();
|
2020-12-28 10:15:37 -05:00
|
|
|
|
|
|
|
/**
|
2021-08-16 07:42:12 -04:00
|
|
|
* The global filter will prevent any messages from even being processed if they are filtered.
|
2020-12-28 10:15:37 -05:00
|
|
|
*/
|
|
|
|
void SetGlobalFilter(const Filter& filter);
|
2021-08-16 07:42:12 -04:00
|
|
|
|
|
|
|
void SetColorConsoleBackendEnabled(bool enabled);
|
|
|
|
} // namespace Common::Log
|