Files
eden/src/common/logging/text_formatter.h
T

19 lines
529 B
C++
Raw Normal View History

2022-05-15 02:06:02 +02:00
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2014-10-28 05:36:00 -02:00
#pragma once
#include <string>
2014-10-28 05:36:00 -02:00
namespace Common::Log {
2014-10-28 05:36:00 -02:00
struct Entry;
/// Formats a log entry into the provided text buffer.
std::string FormatLogMessage(const Entry& entry);
2014-10-28 05:36:00 -02:00
/// 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);
} // namespace Common::Log