CppLogging  1.0.4.0
C++ Logging Library
level.h
Go to the documentation of this file.
1 
9 #ifndef CPPLOGGING_LEVEL_H
10 #define CPPLOGGING_LEVEL_H
11 
12 #include <cstdint>
13 
14 namespace CppLogging {
15 
17 enum class Level : uint8_t
18 {
19  NONE = 0x00,
20  FATAL = 0x1F,
21  ERROR = 0x3F,
22  WARN = 0x7F,
23  INFO = 0x9F,
24  DEBUG = 0xBF,
25  ALL = 0xFF
26 };
27 
29 
34 template <class TOutputStream>
35 TOutputStream& operator<<(TOutputStream& stream, Level level);
36 
37 } // namespace CppLogging
38 
39 #include "level.inl"
40 
41 #endif // CPPLOGGING_LEVEL_H
Logging level inline implementation.
C++ Logging project definitions.
Definition: appender.h:15
TOutputStream & operator<<(TOutputStream &stream, TimeRollingPolicy policy)
Stream output: Time rolling policy.
Level
Logging level.
Definition: level.h:18
@ FATAL
Log fatal errors.
@ WARN
Log warnings.
@ INFO
Log information.
@ ALL
Log everything.
@ NONE
Log nothing.
@ ERROR
Log errors.
@ DEBUG
Log debug.