yuzu-mainline/src/common/logging/text_formatter.h

20 lines
558 B
C++
Raw Normal View History

2014-10-28 03:36:00 -04:00
// Copyright 2014 Citra Emulator Project
2014-12-17 00:38:14 -05:00
// Licensed under GPLv2 or any later version
2014-10-28 03:36:00 -04:00
// Refer to the license.txt file included.
#pragma once
#include <string>
2014-10-28 03:36:00 -04:00
namespace Common::Log {
2014-10-28 03:36:00 -04:00
struct Entry;
/// Formats a log entry into the provided text buffer.
std::string FormatLogMessage(const Entry& entry);
2014-10-28 03:36:00 -04:00
/// 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);
} // namespace Common::Log