Disable color output on Windows for now.
This commit is contained in:
@@ -23,6 +23,14 @@ namespace jlog {
|
||||
}
|
||||
|
||||
std::string consoleMsgFormatter(token t) {
|
||||
// Just disable color output on Windows for now
|
||||
#ifdef WIN32
|
||||
if (!t.delimiter.empty()) {
|
||||
return std::format("{}{}{} ", t.delimiter[0], t.content, t.delimiter[1]);
|
||||
}
|
||||
|
||||
return t.content + " ";
|
||||
#else
|
||||
if (!t.delimiter.empty()) {
|
||||
return std::format("{}{}{}{}{} ", mcolor::toEscapeCode(t.colorCode), t.delimiter[0], t.content,
|
||||
t.delimiter[1], mcolor::toEscapeCode(AnsiColor::RESET));
|
||||
@@ -30,6 +38,7 @@ namespace jlog {
|
||||
|
||||
return std::format("{}{}{} ", mcolor::toEscapeCode(t.colorCode), t.content,
|
||||
mcolor::toEscapeCode(AnsiColor::RESET));
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string logfileMsgFormatter(token t) {
|
||||
|
Reference in New Issue
Block a user