diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-06-24 13:44:12 (GMT) |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-06-24 14:24:33 (GMT) |
commit | 2b6ef864e0906480e2eab4ed90a273fa629aaa62 (patch) | |
tree | dffa317f3f423decf3c4239ed25cc16148189a6e /Source/cmMessageType.h | |
parent | 68eece740a8c55e22a1e1e0c64e99576c7b0d73f (diff) | |
download | CMake-2b6ef864e0906480e2eab4ed90a273fa629aaa62.zip CMake-2b6ef864e0906480e2eab4ed90a273fa629aaa62.tar.gz CMake-2b6ef864e0906480e2eab4ed90a273fa629aaa62.tar.bz2 |
Move LogLevel enum out of cmake.h header
Move LogLevel enum into the cmMessageType.h header in preparation
for a new log level querying feature.
Wrap the enum into a new Message namespace.
Adjust all code usages.
Diffstat (limited to 'Source/cmMessageType.h')
-rw-r--r-- | Source/cmMessageType.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmMessageType.h b/Source/cmMessageType.h index 44de429..decb4b3 100644 --- a/Source/cmMessageType.h +++ b/Source/cmMessageType.h @@ -16,3 +16,19 @@ enum class MessageType DEPRECATION_ERROR, DEPRECATION_WARNING }; + +namespace Message { + +/** \brief Define log level constants. */ +enum class LogLevel +{ + LOG_UNDEFINED, + LOG_ERROR, + LOG_WARNING, + LOG_NOTICE, + LOG_STATUS, + LOG_VERBOSE, + LOG_DEBUG, + LOG_TRACE +}; +} |