Enum Level
Description
Represents enumeration for severity level used to determine level of logging.
@detail With Easylogging++, developers may disable or enable any level regardless of what the severity is. Or they can choose to log using hierarchical logging flag
Values
Global = 1 | Generic level that represents all the levels. Useful when setting global configuration for all levels.
| ||
Trace = 2 | Information that can be useful to back-trace certain events - mostly useful than debug logs.
| ||
Debug = 4 | Informational events most useful for developers to debug application.
| ||
Fatal = 8 | Severe error information that will presumably abort application.
| ||
Error = 16 | Information representing errors in application but application will keep running.
| ||
Warning = 32 | Useful when application has potentially harmful situations.
| ||
Verbose = 64 | Information that can be highly useful and vary with verbose logging level.
| ||
Info = 128 | Mainly useful to represent current progress of application.
| ||
Unknown = 1010 | Represents unknown level. |
Mentioned in
- Getting Started / Installing Custom Crash Handlers
- Getting Started / Manually Flushing and Rolling Log Files
Source
Lines 577-596 in src/easylogging++.h.
enum class Level : base::type::EnumType {
/// @brief Generic level that represents all the levels. Useful when setting global configuration for all levels
Global = 1,
/// @brief Information that can be useful to back-trace certain events - mostly useful than debug logs.
Trace = 2,
/// @brief Informational events most useful for developers to debug application
Debug = 4,
/// @brief Severe error information that will presumably abort application
Fatal = 8,
/// @brief Information representing errors in application but application will keep running
Error = 16,
/// @brief Useful when application has potentially harmful situations
Warning = 32,
/// @brief Information that can be highly useful and vary with verbose logging level.
Verbose = 64,
/// @brief Mainly useful to represent current progress of application
Info = 128,
/// @brief Represents unknown level
Unknown = 1010
};