2014-10-28 08:36:00 +01:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 06:38:14 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-28 08:36:00 +01:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
namespace Log {
|
|
|
|
|
|
|
|
struct Entry;
|
|
|
|
|
|
|
|
/// Formats a log entry into the provided text buffer.
|
2018-03-22 11:21:29 +01:00
|
|
|
std::string FormatLogMessage(const Entry& entry);
|
2014-10-28 08:36:00 +01:00
|
|
|
/// Formats and prints a log entry to stderr.
|
|
|
|
void PrintMessage(const Entry& entry);
|
2014-12-14 05:09:56 +01:00
|
|
|
/// Prints the same message as `PrintMessage`, but colored acoording to the severity level.
|
|
|
|
void PrintColoredMessage(const Entry& entry);
|
2018-01-20 08:48:02 +01:00
|
|
|
} // namespace Log
|