CppLogging 1.0.6.0
C++ Logging Library
Loading...
Searching...
No Matches
level.inl
Go to the documentation of this file.
1
8
9namespace CppLogging {
10
11template <class TOutputStream>
12inline TOutputStream& operator<<(TOutputStream& stream, Level level)
13{
14 switch (level)
15 {
16 case Level::NONE:
17 stream << "None";
18 break;
19 case Level::FATAL:
20 stream << "Fatal";
21 break;
22 case Level::ERROR:
23 stream << "Error";
24 break;
25 case Level::WARN:
26 stream << "Warn";
27 break;
28 case Level::INFO:
29 stream << "Info";
30 break;
31 case Level::DEBUG:
32 stream << "Debug";
33 break;
34 case Level::ALL:
35 stream << "All";
36 break;
37 default:
38 stream << "<unknown>";
39 break;
40 }
41 return stream;
42}
43
44} // namespace CppLogging
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.
Definition level.h:20
@ WARN
Log warnings.
Definition level.h:22
@ INFO
Log information.
Definition level.h:23
@ ALL
Log everything.
Definition level.h:25
@ NONE
Log nothing.
Definition level.h:19
@ ERROR
Log errors.
Definition level.h:21
@ DEBUG
Log debug.
Definition level.h:24