Seregon/ShadPKG

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

C++/47.3 KB/No license
common/logging/text_formatter.h
ShadPKG / common / logging / text_formatter.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>
7 
8namespace Common::Log {
9 
10struct Entry;
11 
12/// Formats a log entry into the provided text buffer.
13std::string FormatLogMessage(const Entry& entry);
14 
15/// Formats and prints a log entry to stderr.
16void PrintMessage(const Entry& entry);
17 
18/// Prints the same message as `PrintMessage`, but colored according to the severity level.
19void PrintColoredMessage(const Entry& entry);
20 
21} // namespace Common::Log
22