mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 00:04:26 -04:00 
			
		
		
		
	Set TraceLevel for logging only in debug builds.
This commit is contained in:
		| @ -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))); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user