[+] LogError, LogVerbose, and LogVerboseNoShip

This commit is contained in:
Reece Wilson 2021-10-21 16:01:48 +01:00
parent 3b2fd7c368
commit a28f5285f0

View File

@ -22,6 +22,22 @@ namespace Aurora::Console::Logging
Aurora::Console::WriteLine(ConsoleMessage(color, tag, fmt::format(msg, args...))); Aurora::Console::WriteLine(ConsoleMessage(color, tag, fmt::format(msg, args...)));
} }
template<typename ... T>
static inline void LogVerbose(const AuString &line, T... args)
{
Aurora::Console::Logging::WriteLinef(EAnsiColor::eYellow, "Verbose", line, args...);
}
#if defined(STAGING) || defined(DEBUG)
template<typename ... T>
static inline void LogVerboseNoShip(const AuString &line, T... args)
{
Aurora::Console::Logging::WriteLinef(EAnsiColor::eYellow, "Verbose", line, args...);
}
#else
#define LogVerboseNoShip(...)
#endif
template<typename ... T> template<typename ... T>
static inline void LogInfo(const AuString &line, T... args) 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...); Aurora::Console::Logging::WriteLinef(EAnsiColor::eRed, "Warn", line, args...);
} }
template<typename ... T>
static inline void LogError(const AuString &line, T... args)
{
Aurora::Console::Logging::WriteLinef(EAnsiColor::eBoldRed, "Error", line, args...);
}
template<typename ... T> template<typename ... T>
static inline void LogGame(const AuString &line, T... args) static inline void LogGame(const AuString &line, T... args)
{ {