mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-19 04:58:27 +00:00
28 lines
700 B
C
28 lines
700 B
C
|
// SPDX-FileCopyrightText: Copyright 2014 Citra Emulator Project
|
||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <string_view>
|
||
|
#include "common/logging/filter.h"
|
||
|
|
||
|
namespace Common::Log {
|
||
|
|
||
|
class Filter;
|
||
|
|
||
|
/// Initializes the logging system. This should be the first thing called in main.
|
||
|
void Initialize(std::string_view log_file = "");
|
||
|
|
||
|
/// Starts the logging threads.
|
||
|
void Start();
|
||
|
|
||
|
/// Explictily stops the logger thread and flushes the buffers
|
||
|
void Stop();
|
||
|
|
||
|
/// The global filter will prevent any messages from even being processed if they are filtered.
|
||
|
void SetGlobalFilter(const Filter& filter);
|
||
|
|
||
|
void SetColorConsoleBackendEnabled(bool enabled);
|
||
|
|
||
|
} // namespace Common::Log
|