refactor: use cerr instead of cout for error logging

This commit is contained in:
2026-03-06 22:16:16 +08:00
parent d51c68ddb4
commit 4e517c6861

View File

@@ -25,7 +25,7 @@ namespace LOG {
time_point_cast<std::chrono::seconds>
(std::chrono::system_clock::now());
std::string msg = std::vformat(fmt, std::make_format_args(args...));
std::cout << "\033[1;31m"
std::cerr << "\033[1;31m"
<< std::format("[ERROR][{:%Y-%m-%d %H:%M:%S}]", now_time)
<< msg
<< "\033[0m"