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
|
|
|
|
|
|
2018-07-31 01:03:47 +02:00
|
|
|
#include <string>
|
2014-10-28 05:36:00 -02:00
|
|
|
|
2021-04-14 20:19:52 -04:00
|
|
|
namespace Common::Log {
|
2014-10-28 05:36:00 -02:00
|
|
|
|
|
|
|
|
struct Entry;
|
|
|
|
|
|
|
|
|
|
/// Formats a log entry into the provided text buffer.
|
2018-03-22 18:21:29 +08:00
|
|
|
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);
|
2018-09-04 10:49:06 -04:00
|
|
|
/// Prints the same message as `PrintMessage`, but colored according to the severity level.
|
2014-12-14 02:09:56 -02:00
|
|
|
void PrintColoredMessage(const Entry& entry);
|
2021-04-14 20:19:52 -04:00
|
|
|
} // namespace Common::Log
|