diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/common/cli.hpp | 2 | ||||
-rw-r--r-- | src/buildtool/logging/log_level.hpp | 7 | ||||
-rw-r--r-- | src/buildtool/logging/log_sink_cmdline.hpp | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index bdd21286..8bb0ec89 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -14,7 +14,7 @@ #include "nlohmann/json.hpp" #include "src/buildtool/logging/log_level.hpp" -constexpr auto kDefaultLogLevel = LogLevel::Info; +constexpr auto kDefaultLogLevel = LogLevel::Progress; constexpr auto kDefaultTimeout = std::chrono::milliseconds{300000}; /// \brief Arguments common to all commands. diff --git a/src/buildtool/logging/log_level.hpp b/src/buildtool/logging/log_level.hpp index 6847e69c..7de1dab4 100644 --- a/src/buildtool/logging/log_level.hpp +++ b/src/buildtool/logging/log_level.hpp @@ -9,8 +9,9 @@ enum class LogLevel { Error, ///< Error messages, fatal errors Warning, ///< Warning messages, recoverable situations that shouldn't occur Info, ///< Informative messages, such as reporting status or statistics - Debug, ///< Debug messages, such as details from internal processes - Trace ///< Trace messages, verbose details such as function calls + Progress, ///< Information about the current progress of the build + Debug, ///< Debug messages, such as details from internal processes + Trace ///< Trace messages, verbose details such as function calls }; constexpr auto kFirstLogLevel = LogLevel::Error; @@ -31,6 +32,8 @@ constexpr auto kLastLogLevel = LogLevel::Trace; return "WARN"; case LogLevel::Info: return "INFO"; + case LogLevel::Progress: + return "PROG"; case LogLevel::Debug: return "DEBUG"; case LogLevel::Trace: diff --git a/src/buildtool/logging/log_sink_cmdline.hpp b/src/buildtool/logging/log_sink_cmdline.hpp index 0eef3589..f89acca5 100644 --- a/src/buildtool/logging/log_sink_cmdline.hpp +++ b/src/buildtool/logging/log_sink_cmdline.hpp @@ -79,6 +79,9 @@ class LogSinkCmdLine final : public ILogSink { case LogLevel::Info: style = fg(fmt::color::lime_green); break; + case LogLevel::Progress: + style = fg(fmt::color::dark_green); + break; case LogLevel::Debug: style = fg(fmt::color::yellow); break; |