From b04591fadb0ab27aa982ec5d810d76026666cba6 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 11 Aug 2023 11:27:59 -0400 Subject: [PATCH] no color --- src/tests/main.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tests/main.cpp b/src/tests/main.cpp index 2e050b6..3216bb8 100755 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -73,13 +73,12 @@ int main(int argc, const char** argv) { auto args = parser.parse_args(argc, argv); -// -// if (argc > 1 && std::string(argv[1]) == "--no_color") { -// for (int i = (int)blt::logging::log_level::NONE; i < (int)blt::logging::log_level::FATAL; i++) { -// blt::logging::setLogColor((blt::logging::log_level)i, ""); -// } -// blt::logging::setLogOutputFormat("[${{TIME}}] [${{LOG_LEVEL}}] (${{FILE}}:${{LINE}}) ${{STR}}\n"); -// } + if (args.contains("--no-color")) { + for (int i = (int)blt::logging::log_level::NONE; i < (int)blt::logging::log_level::FATAL; i++) { + blt::logging::setLogColor((blt::logging::log_level)i, ""); + } + blt::logging::setLogOutputFormat("[${{TIME}}] [${{LOG_LEVEL}}] (${{FILE}}:${{LINE}}) ${{STR}}\n"); + } // // auto* funy = new class_func; // super_func* virtual_funy = new class_func;