From 94a9a28de16badb75e66a60efca3b01d31cc0fc6 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 4 Nov 2021 12:48:01 +0800 Subject: * text anchor --- Runtime/Debug/Log.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Runtime/Debug/Log.cpp') diff --git a/Runtime/Debug/Log.cpp b/Runtime/Debug/Log.cpp index c44d7af..301e15a 100644 --- a/Runtime/Debug/Log.cpp +++ b/Runtime/Debug/Log.cpp @@ -101,7 +101,7 @@ void log_info_tag(const char* tag, const char* fmt, ...) SetOutputColor(0); va_list pArgs = NULL; va_start(pArgs, fmt); - printf("%s [Info] %s ", currentDateTime().c_str(), tag); + printf("%s [Info] [%s] ", currentDateTime().c_str(), tag); vprintf(fmt, pArgs); printf("\n"); va_end(pArgs); @@ -114,7 +114,7 @@ void log_warning_tag(const char* tag, const char* fmt, ...) SetOutputColor(1); va_list pArgs = NULL; va_start(pArgs, fmt); - printf("%s [Warning] %s ", currentDateTime().c_str(), tag); + printf("%s [Warning] [%s] ", currentDateTime().c_str(), tag); vprintf(fmt, pArgs); printf("\n"); va_end(pArgs); @@ -127,7 +127,7 @@ void log_error_tag(const char* tag, const char* fmt, ...) SetOutputColor(2); va_list pArgs = NULL; va_start(pArgs, fmt); - printf("%s [Error] %s ", currentDateTime().c_str(), tag); + printf("%s [Error] [%s] ", currentDateTime().c_str(), tag); vprintf(fmt, pArgs); printf("\n"); va_end(pArgs); -- cgit v1.1-26-g67d0