chore: console with color at tty

revert to c5ca3ba0
This commit is contained in:
ck 2023-08-15 11:39:35 +08:00 committed by mike
parent 55aaa82cf3
commit 58244dd554
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ void ConsoleAppender::append(const QDateTime &time, Logger::LogLevel level, cons
Q_ASSERT(clogger);
clogger->set_level(spdlog::level::level_enum(detailsLevel()));
const auto &formatted = formattedString(time, level, file, line, func, category, msg, true);
const auto &formatted = formattedString(time, level, file, line, func, category, msg, isatty(STDOUT_FILENO));
clogger->log(spdlog::level::level_enum(level), formatted.toStdString());
}