We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52a217f + 1e80ec7 commit 6772205Copy full SHA for 6772205
src/logging.hpp
@@ -35,7 +35,7 @@ class logger
35
return;
36
}
37
38
- auto const &ts = m_show_progress ? style : fmt::text_style{};
+ auto const &ts = m_use_color ? style : fmt::text_style{};
39
40
std::string str =
41
"{:%Y-%m-%d %H:%M:%S} "_format(fmt::localtime(std::time(nullptr)));
@@ -71,6 +71,7 @@ class logger
71
bool m_log_sql = false;
72
bool m_log_sql_data = false;
73
bool m_show_progress = true;
74
+ bool m_use_color = osmium::util::isatty(2);
75
76
}; // class logger
77
0 commit comments