Closed kasonyin closed 3 years ago
log4Qt version:1.5.0 writerappender.cpp
void WriterAppender::setEncoding(QTextCodec *encoding) { QMutexLocker locker(&mObjectGuard); if (mEncoding == encoding) return; mEncoding = encoding; if (mWriter != nullptr) { if (mEncoding != nullptr) mWriter->setCodec(mEncoding); // Just annotate out this sentence mWriter->setCodec(QTextCodec::codecForLocale()); } }
log4Qt version:1.5.0 writerappender.cpp