CppLogging
1.0.4.0
C++ Logging Library
include
logging
level.inl
Go to the documentation of this file.
1
9
namespace
CppLogging
{
10
11
template
<
class
TOutputStream>
12
inline
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
CppLogging
C++ Logging project definitions.
Definition:
appender.h:15
CppLogging::operator<<
TOutputStream & operator<<(TOutputStream &stream, TimeRollingPolicy policy)
Stream output: Time rolling policy.
Definition:
rolling_file_appender.inl:12
CppLogging::Level
Level
Logging level.
Definition:
level.h:18
CppLogging::Level::FATAL
@ FATAL
Log fatal errors.
CppLogging::Level::WARN
@ WARN
Log warnings.
CppLogging::Level::INFO
@ INFO
Log information.
CppLogging::Level::ALL
@ ALL
Log everything.
CppLogging::Level::NONE
@ NONE
Log nothing.
CppLogging::Level::ERROR
@ ERROR
Log errors.
CppLogging::Level::DEBUG
@ DEBUG
Log debug.
Generated by
1.9.1