Lime3DS/src/common/logging/backend.h

28 lines
647 B
C++
Raw Normal View History

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>
#include "common/logging/filter.h"
namespace Common::Log {
2014-10-28 07:36:00 +00:00
class Filter;
/// 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 = "");
void Start();
void DisableLoggingInTests();
/**
* The global filter will prevent any messages from even being processed if they are filtered.
2014-10-28 07:36:00 +00:00
*/
void SetGlobalFilter(const Filter& filter);
void SetColorConsoleBackendEnabled(bool enabled);
} // namespace Common::Log