updated QsLog

This commit is contained in:
Luis Ángel San Martín 2014-05-27 20:36:26 +02:00
parent 75f5c5774c
commit 24e20f889a
2 changed files with 2 additions and 2 deletions

View File

@ -146,6 +146,7 @@ Logger& Logger::instance()
void Logger::destroyInstance() void Logger::destroyInstance()
{ {
delete sInstance; delete sInstance;
sInstance = 0;
} }
// tries to extract the level from a string log message. If available, conversionSucceeded will // tries to extract the level from a string log message. If available, conversionSucceeded will

View File

@ -1,8 +1,7 @@
INCLUDEPATH += $$PWD INCLUDEPATH += $$PWD
#DEFINES += QS_LOG_LINE_NUMBERS # automatically writes the file and line for each log message #DEFINES += QS_LOG_LINE_NUMBERS # automatically writes the file and line for each log message
#DEFINES += QS_LOG_DISABLE # logging code is replaced with a no-op #DEFINES += QS_LOG_DISABLE # logging code is replaced with a no-op
DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread #DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread
SOURCES += $$PWD/QsLogDest.cpp \ SOURCES += $$PWD/QsLogDest.cpp \
$$PWD/QsLog.cpp \ $$PWD/QsLog.cpp \
$$PWD/QsLogDestConsole.cpp \ $$PWD/QsLogDestConsole.cpp \