Mercurial > hg > orthanc
comparison Core/Logging.h @ 1507:46b2794042d6 Orthanc-0.9.3
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Aug 2015 20:14:26 +0200 |
parents | fbe40117eb21 |
children | 0dba274074eb |
comparison
equal
deleted
inserted
replaced
1504:18518e1f5fb0 | 1507:46b2794042d6 |
---|---|
79 public: | 79 public: |
80 InternalLogger(const char* level, | 80 InternalLogger(const char* level, |
81 const char* file, | 81 const char* file, |
82 int line); | 82 int line); |
83 | 83 |
84 ~InternalLogger() | 84 ~InternalLogger(); |
85 { | |
86 #if defined(_WIN32) | |
87 *stream_ << "\r\n"; | |
88 #else | |
89 *stream_ << "\n"; | |
90 #endif | |
91 } | |
92 | 85 |
93 std::ostream& operator<< (const std::string& message) | 86 std::ostream& operator<< (const std::string& message) |
94 { | 87 { |
95 return (*stream_) << message; | 88 return (*stream_) << message; |
96 } | 89 } |