summaryrefslogblamecommitdiffstats
path: root/src/common/logging/text_formatter.h
blob: b6d9e57c89bef71a35f8dff4ccd8f27d3c2966d3 (plain) (tree)
1
2
3
4
5
6
7
8
                                        
                                            




                                          
                 


               


                                                      
                                                 

                                             
                                                                                           
                                             
                  
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <cstddef>
#include <string>

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 according to the severity level.
void PrintColoredMessage(const Entry& entry);
} // namespace Log