CppLogging
1.0.4.0
C++ Logging Library
include
logging
appenders
rolling_file_appender.inl
Go to the documentation of this file.
1
9
namespace
CppLogging
{
10
11
template
<
class
TOutputStream>
12
inline
TOutputStream&
operator<<
(TOutputStream& stream,
TimeRollingPolicy
policy)
13
{
14
switch
(policy)
15
{
16
case
TimeRollingPolicy::YEAR
:
17
stream <<
"Year"
;
18
break
;
19
case
TimeRollingPolicy::MONTH
:
20
stream <<
"Month"
;
21
break
;
22
case
TimeRollingPolicy::DAY
:
23
stream <<
"Day"
;
24
break
;
25
case
TimeRollingPolicy::HOUR
:
26
stream <<
"Hour"
;
27
break
;
28
case
TimeRollingPolicy::MINUTE
:
29
stream <<
"Minute"
;
30
break
;
31
case
TimeRollingPolicy::SECOND
:
32
stream <<
"Second"
;
33
break
;
34
default
:
35
stream <<
"<unknown>"
;
36
break
;
37
}
38
return
stream;
39
}
40
41
}
// namespace CppLogging
CppLogging
C++ Logging project definitions.
Definition:
appender.h:15
CppLogging::TimeRollingPolicy
TimeRollingPolicy
Time rolling policy.
Definition:
rolling_file_appender.h:22
CppLogging::TimeRollingPolicy::SECOND
@ SECOND
Second rolling policy.
CppLogging::TimeRollingPolicy::MONTH
@ MONTH
Monthly rolling policy.
CppLogging::TimeRollingPolicy::MINUTE
@ MINUTE
Minute rolling policy.
CppLogging::TimeRollingPolicy::DAY
@ DAY
Daily rolling policy.
CppLogging::TimeRollingPolicy::YEAR
@ YEAR
Year rolling policy.
CppLogging::TimeRollingPolicy::HOUR
@ HOUR
Hour rolling policy.
CppLogging::operator<<
TOutputStream & operator<<(TOutputStream &stream, TimeRollingPolicy policy)
Stream output: Time rolling policy.
Definition:
rolling_file_appender.inl:12
Generated by
1.9.1