2014-10-28 07:36:00 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-28 07:36:00 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstddef>
|
2018-05-19 12:31:09 +01:00
|
|
|
#include <string>
|
2014-10-28 07:36:00 +00:00
|
|
|
|
|
|
|
namespace Log {
|
|
|
|
|
|
|
|
struct Entry;
|
|
|
|
|
|
|
|
/// Formats a log entry into the provided text buffer.
|
2018-02-20 00:51:27 +00:00
|
|
|
std::string FormatLogMessage(const Entry& entry);
|
2014-10-28 07:36:00 +00:00
|
|
|
/// Formats and prints a log entry to stderr.
|
|
|
|
void PrintMessage(const Entry& entry);
|
2018-09-04 15:49:06 +01:00
|
|
|
/// Prints the same message as `PrintMessage`, but colored according to the severity level.
|
2014-12-14 04:09:56 +00:00
|
|
|
void PrintColoredMessage(const Entry& entry);
|
2020-05-09 14:35:12 +01:00
|
|
|
/// Formats and prints a log entry to the android logcat.
|
|
|
|
void PrintMessageToLogcat(const Entry& entry);
|
2018-02-20 00:51:27 +00:00
|
|
|
} // namespace Log
|