Mercurial > hg > orthanc
changeset 4001:5d5662ff4d5c
unifying loggers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 20:56:11 +0200 |
parents | 5f6c11a5e1f9 |
children | 02e61695cd83 |
files | Core/Logging.h |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/Logging.h Fri Jun 05 19:18:14 2020 +0200 +++ b/Core/Logging.h Fri Jun 05 20:56:11 2020 +0200 @@ -151,8 +151,8 @@ class ORTHANC_PUBLIC InternalLogger : public boost::noncopyable { private: - LogLevel level_; - std::stringstream messageStream_; + LogLevel level_; + std::stringstream messageStream_; public: InternalLogger(LogLevel level, @@ -162,10 +162,10 @@ ~InternalLogger(); template <typename T> - InternalLogger& operator<< (const T& message) + std::ostream& operator<< (const T& message) { messageStream_ << message; - return *this; + return messageStream_; } }; }