From a28f5285f049a57a246d811f300d67edb1112b4c Mon Sep 17 00:00:00 2001 From: Reece Date: Thu, 21 Oct 2021 16:01:48 +0100 Subject: [PATCH] [+] LogError, LogVerbose, and LogVerboseNoShip --- Include/Aurora/Console/Logging/Logging.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Include/Aurora/Console/Logging/Logging.hpp b/Include/Aurora/Console/Logging/Logging.hpp index 3b76fa64..dadce179 100644 --- a/Include/Aurora/Console/Logging/Logging.hpp +++ b/Include/Aurora/Console/Logging/Logging.hpp @@ -21,6 +21,22 @@ namespace Aurora::Console::Logging { Aurora::Console::WriteLine(ConsoleMessage(color, tag, fmt::format(msg, args...))); } + + template + static inline void LogVerbose(const AuString &line, T... args) + { + Aurora::Console::Logging::WriteLinef(EAnsiColor::eYellow, "Verbose", line, args...); + } + +#if defined(STAGING) || defined(DEBUG) + template + static inline void LogVerboseNoShip(const AuString &line, T... args) + { + Aurora::Console::Logging::WriteLinef(EAnsiColor::eYellow, "Verbose", line, args...); + } +#else + #define LogVerboseNoShip(...) +#endif template static inline void LogInfo(const AuString &line, T... args) @@ -40,6 +56,12 @@ namespace Aurora::Console::Logging Aurora::Console::Logging::WriteLinef(EAnsiColor::eRed, "Warn", line, args...); } + template + static inline void LogError(const AuString &line, T... args) + { + Aurora::Console::Logging::WriteLinef(EAnsiColor::eBoldRed, "Error", line, args...); + } + template static inline void LogGame(const AuString &line, T... args) {