mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-20 04:50:07 +00:00
0daac3020e
* Change the logging backend to support multiple sinks through the Backend Interface * Add a new set of logging macros to use fmtlib instead. * Qt: Compile as GUI application on windows to make the console hidden by default. Add filter configuration and a button to open log location. * SDL: Migrate to the new logging macros
20 lines
543 B
C++
20 lines
543 B
C++
// Copyright 2014 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
namespace Log {
|
|
|
|
struct Entry;
|
|
|
|
/// Formats a log entry into the provided text buffer.
|
|
std::string FormatLogMessage(const Entry& entry);
|
|
/// 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
|