mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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());
|
QDir().mkpath(YACReader::getSettingsPath());
|
||||||
|
|
||||||
Logger& logger = Logger::instance();
|
Logger& logger = Logger::instance();
|
||||||
|
#ifdef QT_DEBUG
|
||||||
logger.setLoggingLevel(QsLogging::TraceLevel);
|
logger.setLoggingLevel(QsLogging::TraceLevel);
|
||||||
|
#else
|
||||||
|
logger.setLoggingLevel(QsLogging::ErrorLevel);
|
||||||
|
#endif
|
||||||
|
|
||||||
DestinationPtr fileDestination(DestinationFactory::MakeFileDestination(
|
DestinationPtr fileDestination(DestinationFactory::MakeFileDestination(
|
||||||
destLog, EnableLogRotation, MaxSizeBytes(1048576), MaxOldLogCount(2)));
|
destLog, EnableLogRotation, MaxSizeBytes(1048576), MaxOldLogCount(2)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user