diff options
author | chai <chaifix@163.com> | 2021-11-04 12:48:01 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 12:48:01 +0800 |
commit | 94a9a28de16badb75e66a60efca3b01d31cc0fc6 (patch) | |
tree | a37e09236da2b7cda11a451d6fed4fe37afb065c /Runtime/Debug/Log.cpp | |
parent | b215d811a1981e20f35bb31df4e6cd2a74146193 (diff) |
* text anchor
Diffstat (limited to 'Runtime/Debug/Log.cpp')
-rw-r--r-- | Runtime/Debug/Log.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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);
|