text_formatter.h 577 B

1234567891011121314151617181920
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <cstddef>
  6. #include <string>
  7. namespace Common::Log {
  8. struct Entry;
  9. /// Formats a log entry into the provided text buffer.
  10. std::string FormatLogMessage(const Entry& entry);
  11. /// Formats and prints a log entry to stderr.
  12. void PrintMessage(const Entry& entry);
  13. /// Prints the same message as `PrintMessage`, but colored according to the severity level.
  14. void PrintColoredMessage(const Entry& entry);
  15. } // namespace Common::Log