pineapple-src/src/common/logging/text_formatter.h

19 lines
529 B
C
Raw Normal View History

2022-07-27 18:06:50 +00:00
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 15:15:37 +00:00
#pragma once
#include <string>
2021-04-15 05:16:22 +00:00
namespace Common::Log {
2020-12-28 15:15:37 +00:00
struct Entry;
/// Formats a log entry into the provided text buffer.
std::string FormatLogMessage(const Entry& entry);
/// Formats and prints a log entry to stderr.
void PrintMessage(const Entry& entry);
/// Prints the same message as `PrintMessage`, but colored according to the severity level.
void PrintColoredMessage(const Entry& entry);
2021-04-15 05:16:22 +00:00
} // namespace Common::Log