CppLogging 1.0.5.0
C++ Logging Library
Loading...
Searching...
No Matches
level.inl
Go to the documentation of this file.
1
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.
@ WARN
Log warnings.
@ INFO
Log information.
@ ALL
Log everything.
@ NONE
Log nothing.
@ ERROR
Log errors.
@ DEBUG
Log debug.