dept2 / CuteLogger

Logger: simple, convinient and thread safe logger for Qt-based C++ apps
GNU Lesser General Public License v2.1
148 stars 96 forks source link

New stripFunctionName function, Qt5 logging style #1

Closed MTuner closed 11 years ago

MTuner commented 11 years ago

Warning: source and binary incompatible changes

MTuner commented 11 years ago

27f1125 commit: Default logging format and code comments were fixed.

Is it possible to use the qCleanupFuncinfo included with Qt 5 when building with it instead of a local copy?

No, this function is declared in the private qlogging.cpp source file.

I think it will be better (and more Qt5 format compatible) to print QThread::currentThreadId() in here instead of formatting and printing QThread object pointer.

This thread ID formatting is used in Qt5 debugging sources (qlogging.cpp), so I used their way to print thread ID. I left appropriate comment in the last commit.