mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix QsLog integration in reader too.
This commit is contained in:
parent
2f9db87f9b
commit
ac4d2f4804
@ -104,11 +104,11 @@ int main(int argc, char *argv[])
|
|||||||
Logger &logger = Logger::instance();
|
Logger &logger = Logger::instance();
|
||||||
logger.setLoggingLevel(QsLogging::InfoLevel);
|
logger.setLoggingLevel(QsLogging::InfoLevel);
|
||||||
|
|
||||||
DestinationPtr fileDestination(DestinationFactory::MakeFileDestination(
|
DestinationPtrU fileDestination(DestinationFactory::MakeFileDestination(
|
||||||
destLog, EnableLogRotation, MaxSizeBytes(1048576), MaxOldLogCount(2)));
|
destLog, LogRotationOption::EnableLogRotation, MaxSizeBytes(1048576), MaxOldLogCount(2)));
|
||||||
DestinationPtr debugDestination(DestinationFactory::MakeDebugOutputDestination());
|
DestinationPtrU debugDestination(DestinationFactory::MakeDebugOutputDestination());
|
||||||
logger.addDestination(debugDestination);
|
logger.addDestination(std::move(debugDestination));
|
||||||
logger.addDestination(fileDestination);
|
logger.addDestination(std::move(fileDestination));
|
||||||
|
|
||||||
QTranslator translator;
|
QTranslator translator;
|
||||||
QString sufix = QLocale::system().name();
|
QString sufix = QLocale::system().name();
|
||||||
@ -137,5 +137,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
//Configuration::getConfiguration().save();
|
//Configuration::getConfiguration().save();
|
||||||
YACReader::exitCheck(ret);
|
YACReader::exitCheck(ret);
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
logger.shutDownLoggerThread();
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user