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