summaryrefslogtreecommitdiff
path: root/src/buildtool/logging/log_level.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-06-13 13:30:13 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-06-13 15:55:41 +0200
commit036508be71ebe51102af7ca4a4aa8055445b75a9 (patch)
tree6731ddcc7e07134090d7812ed414eaab146b94c8 /src/buildtool/logging/log_level.hpp
parentc4fa8edfe1d70e3da47c9e7b28e54b46fb57a1f1 (diff)
downloadjustbuild-036508be71ebe51102af7ca4a4aa8055445b75a9.tar.gz
Logging: Extend logger by level for Performance
Diffstat (limited to 'src/buildtool/logging/log_level.hpp')
-rw-r--r--src/buildtool/logging/log_level.hpp9
1 files changed, 6 insertions, 3 deletions
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: