mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Set TraceLevel for logging only in debug builds.
This commit is contained in:
parent
66d1bd1046
commit
4be84c6845
@ -101,7 +101,11 @@ int main( int argc, char ** argv )
|
||||
QDir().mkpath(YACReader::getSettingsPath());
|
||||
|
||||
Logger& logger = Logger::instance();
|
||||
#ifdef QT_DEBUG
|
||||
logger.setLoggingLevel(QsLogging::TraceLevel);
|
||||
#else
|
||||
logger.setLoggingLevel(QsLogging::ErrorLevel);
|
||||
#endif
|
||||
|
||||
DestinationPtr fileDestination(DestinationFactory::MakeFileDestination(
|
||||
destLog, EnableLogRotation, MaxSizeBytes(1048576), MaxOldLogCount(2)));
|
||||
|
Loading…
Reference in New Issue
Block a user