From ab1a0a06dd80c2b7afbe0ba3dd48cf6eb454c1eb Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 30 Mar 2022 15:36:56 +0200 Subject: Add a new log level for progress updates --- src/buildtool/logging/log_level.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/buildtool/logging/log_level.hpp') 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: -- cgit v1.2.3