mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
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.
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user