Seregon/ShadPKG

A tool for deriving PKG packet encryption keys for ps4 written in c++

C++/47.3 KB/No license
common/logging/backend.h
ShadPKG / common / logging / backend.h
1// SPDX-FileCopyrightText: Copyright 2014 Citra Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3 
4#pragma once
5 
6#include <string_view>
7#include "common/logging/filter.h"
8 
9namespace Common::Log {
10 
11class Filter;
12 
13/// Initializes the logging system. This should be the first thing called in main.
14void Initialize(std::string_view log_file = "");
15 
16bool IsActive();
17 
18/// Starts the logging threads.
19void Start();
20 
21/// Explictily stops the logger thread and flushes the buffers
22void Stop();
23 
24/// The global filter will prevent any messages from even being processed if they are filtered.
25void SetGlobalFilter(const Filter& filter);
26 
27void SetColorConsoleBackendEnabled(bool enabled);
28 
29} // namespace Common::Log
30