From 97bf497ec080b9b44c3fee48017d4131fdc0adfa Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sun, 18 Feb 2024 18:11:11 +0000 Subject: [PATCH] [*] 260e33fd cont again --- Include/Aurora/Logging/ILogger.hpp | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Include/Aurora/Logging/ILogger.hpp b/Include/Aurora/Logging/ILogger.hpp index 10b17ad6..2fac75f9 100644 --- a/Include/Aurora/Logging/ILogger.hpp +++ b/Include/Aurora/Logging/ILogger.hpp @@ -37,32 +37,32 @@ namespace Aurora::Logging #if defined(_AUHAS_FMT) template - inline void WriteLinef(AuUInt8 level, const AuString &tag, const AuString &msg, T&& ... args) + inline void WriteLinef(AuUInt8 level, const AuString &tag, fmt::format_string msg, T&& ... args) { WriteMessage(level, ConsoleMessage(EAnsiColor::eReset, tag, fmt::format(msg, AuForward(args)...))); } template - inline void WriteLinef(AuUInt8 level, EAnsiColor color, const AuString &tag, const AuString &msg, T&& ... args) + inline void WriteLinef(AuUInt8 level, EAnsiColor color, const AuString &tag, fmt::format_string msg, T&& ... args) { WriteMessage(level, ConsoleMessage(color, tag, fmt::format(msg, AuForward(args)...))); } template - inline void LogVerbose(const AuString &line, T&& ... args) + inline void LogVerbose(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eVerbose), EAnsiColor::eYellow, "Verbose", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eVerbose), EAnsiColor::eYellow, "Verbose", msg, AuForward(args)...); } #if defined(STAGING) || defined(DEBUG) template - inline void LogVerboseNoShip(const AuString &line, T&& ... args) + inline void LogVerboseNoShip(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eVerbose), EAnsiColor::eYellow, "Verbose", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eVerbose), EAnsiColor::eYellow, "Verbose", msg, AuForward(args)...); } #else template - inline void LogVerboseNoShip(const AuString &line, T&& ... args) + inline void LogVerboseNoShip(fmt::format_string msg, T&& ... args) {} #endif @@ -72,39 +72,39 @@ namespace Aurora::Logging } template - inline void LogInfo(const AuString &line, T&& ... args) + inline void LogInfo(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eInfo), EAnsiColor::eGreen, "Info", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eInfo), EAnsiColor::eGreen, "Info", msg, AuForward(args)...); } template - inline void LogDbg(const AuString &line, T&& ... args) + inline void LogDbg(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eDebug), EAnsiColor::eYellow, "Debug", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eDebug), EAnsiColor::eYellow, "Debug", msg, AuForward(args)...); } template - inline void LogWarn(const AuString &line, T&& ... args) + inline void LogWarn(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eWarn), EAnsiColor::eRed, "Warn", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eWarn), EAnsiColor::eRed, "Warn", msg, AuForward(args)...); } template - inline void LogCritical(const AuString &line, T&& ... args) + inline void LogCritical(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eCritical), EAnsiColor::eBoldRed, "Critical", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eCritical), EAnsiColor::eBoldRed, "Critical", msg, AuForward(args)...); } template - inline void LogError(const AuString &line, T&& ... args) + inline void LogError(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eError), EAnsiColor::eBoldRed, "Error", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eError), EAnsiColor::eBoldRed, "Error", msg, AuForward(args)...); } template - inline void LogGame(const AuString &line, T&& ... args) + inline void LogGame(fmt::format_string msg, T&& ... args) { - WriteLinef(static_cast(ELogLevel::eVerbose), EAnsiColor::eBlue, "Game", line, AuForward(args)...); + WriteLinef(static_cast(ELogLevel::eVerbose), EAnsiColor::eBlue, "Game", msg, AuForward(args)...); } #endif