2020-12-28 16:15:37 +01:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <string>
|
|
|
|
|
2021-04-15 07:16:22 +02:00
|
|
|
namespace Common::Log {
|
2020-12-28 16:15:37 +01: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 07:16:22 +02:00
|
|
|
} // namespace Common::Log
|