diff --git a/src/common/logger.cpp b/src/common/logger.cpp index 8cd8c70250..225a1f003d 100644 --- a/src/common/logger.cpp +++ b/src/common/logger.cpp @@ -517,6 +517,11 @@ Logger::Logger(const Logger &other) m_fileDisabledThreshold(other.m_fileDisabledThreshold), m_fileVerbosityThreshold(other.m_fileVerbosityThreshold) { + // Copy buffer properties + copyfmt(other); + exceptions(other.exceptions()); + clear(other.rdstate()); + basic_ios::rdbuf(other.rdbuf()); } /*!