File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ namespace log
40
40
41
41
static inline void end (LogLevel lvl) { std::cout << std::endl; }
42
42
43
- template <class T >
43
+ template <class T >
44
44
static inline void writeObj (LogLevel lvl, const T& obj)
45
45
{
46
46
std::cout << obj;
@@ -57,7 +57,7 @@ namespace log
57
57
58
58
static inline void end (LogLevel lvl) { std::cerr << std::endl; }
59
59
60
- template <class T >
60
+ template <class T >
61
61
static inline void writeObj (LogLevel lvl, const T& obj)
62
62
{
63
63
std::cerr << obj;
@@ -82,13 +82,13 @@ namespace log
82
82
std::cout << std::endl;
83
83
}
84
84
85
- template <class T >
85
+ template <class T >
86
86
static inline void writeObj (LogLevel lvl, const T& obj)
87
87
{
88
88
if (lvl < switchLvl)
89
- std::cerr << std::endl ;
89
+ std::cerr << obj ;
90
90
else
91
- std::cout << std::endl ;
91
+ std::cout << obj ;
92
92
}
93
93
};
94
94
You can’t perform that action at this time.
0 commit comments