Skip to content
Snippets Groups Projects
text_formatter.h 561 B
Newer Older
Yuri Kunde Schlesner's avatar
Yuri Kunde Schlesner committed
// Copyright 2014 Citra Emulator Project
purpasmart96's avatar
purpasmart96 committed
// Licensed under GPLv2 or any later version
Yuri Kunde Schlesner's avatar
Yuri Kunde Schlesner committed
// Refer to the license.txt file included.

#pragma once

#include <cstddef>
Yuri Kunde Schlesner's avatar
Yuri Kunde Schlesner committed

namespace Log {

struct Entry;

/// Formats a log entry into the provided text buffer.
std::string FormatLogMessage(const Entry& entry);
Yuri Kunde Schlesner's avatar
Yuri Kunde Schlesner committed
/// Formats and prints a log entry to stderr.
void PrintMessage(const Entry& entry);
/// Prints the same message as `PrintMessage`, but colored acoording to the severity level.
void PrintColoredMessage(const Entry& entry);
} // namespace Log