[+] LogError, LogVerbose, and LogVerboseNoShip
This commit is contained in:
parent
3b2fd7c368
commit
a28f5285f0
@ -22,6 +22,22 @@ namespace Aurora::Console::Logging
|
||||
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>
|
||||
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<typename ... T>
|
||||
static inline void LogError(const AuString &line, T... args)
|
||||
{
|
||||
Aurora::Console::Logging::WriteLinef(EAnsiColor::eBoldRed, "Error", line, args...);
|
||||
}
|
||||
|
||||
template<typename ... T>
|
||||
static inline void LogGame(const AuString &line, T... args)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user