diff options
-rw-r--r-- | share/man/just.1.org | 2 | ||||
-rw-r--r-- | src/buildtool/logging/log_level.hpp | 9 | ||||
-rw-r--r-- | src/buildtool/logging/log_sink_cmdline.hpp | 3 | ||||
-rw-r--r-- | test/utils/logging/log_config.hpp | 1 |
4 files changed, 11 insertions, 4 deletions
diff --git a/share/man/just.1.org b/share/man/just.1.org index da7c0f29..5d2e0691 100644 --- a/share/man/just.1.org +++ b/share/man/just.1.org @@ -316,7 +316,7 @@ well-defined graph file. See *just-graph-file(5)* for more details. Supported by: analyse|build|describe|install|rebuild|traverse. *--log-limit* NUM\\ - Log limit (higher is more verbose) in interval [0,5] (Default: 3).\\ + Log limit (higher is more verbose) in interval [0,6] (Default: 3).\\ Supported by: analyse|build|describe|install|rebuild|traverse. *-P*, *--print-to-stdout* LOGICAL_PATH\\ diff --git a/src/buildtool/logging/log_level.hpp b/src/buildtool/logging/log_level.hpp index 7de1dab4..d89f5806 100644 --- a/src/buildtool/logging/log_level.hpp +++ b/src/buildtool/logging/log_level.hpp @@ -9,9 +9,10 @@ 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 - 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 + Progress, ///< Information about the current progress of the build + Performance, ///< Information about performance issues + Debug, ///< Debug messages, such as details from internal processes + Trace ///< Trace messages, verbose details such as function calls }; constexpr auto kFirstLogLevel = LogLevel::Error; @@ -34,6 +35,8 @@ constexpr auto kLastLogLevel = LogLevel::Trace; return "INFO"; case LogLevel::Progress: return "PROG"; + case LogLevel::Performance: + return "PERF"; 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 f89acca5..d6504a09 100644 --- a/src/buildtool/logging/log_sink_cmdline.hpp +++ b/src/buildtool/logging/log_sink_cmdline.hpp @@ -82,6 +82,9 @@ class LogSinkCmdLine final : public ILogSink { case LogLevel::Progress: style = fg(fmt::color::dark_green); break; + case LogLevel::Performance: + style = fg(fmt::color::sky_blue); + break; case LogLevel::Debug: style = fg(fmt::color::yellow); break; diff --git a/test/utils/logging/log_config.hpp b/test/utils/logging/log_config.hpp index 8c9c6388..7ae51aa7 100644 --- a/test/utils/logging/log_config.hpp +++ b/test/utils/logging/log_config.hpp @@ -26,6 +26,7 @@ static auto ReadLogLevelFromEnv() -> LogLevel { case LogLevel::Warning: case LogLevel::Info: case LogLevel::Progress: + case LogLevel::Performance: case LogLevel::Debug: case LogLevel::Trace: return log_level; |