text_formatter.h 634 B

1234567891011121314151617181920
  1. // SPDX-FileCopyrightText: 2014 Citra Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string>
  5. namespace Common::Log {
  6. struct Entry;
  7. /// Formats a log entry into the provided text buffer.
  8. std::string FormatLogMessage(const Entry& entry);
  9. /// Formats and prints a log entry to stderr.
  10. void PrintMessage(const Entry& entry);
  11. /// Prints the same message as `PrintMessage`, but colored according to the severity level.
  12. void PrintColoredMessage(const Entry& entry);
  13. /// Formats and prints a log entry to the android logcat.
  14. void PrintMessageToLogcat(const Entry& entry);
  15. } // namespace Common::Log