Improve the logging message pattern
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 28 Mar 2017 13:56:07 +0000 (15:56 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Thu, 11 May 2017 15:22:59 +0000 (17:22 +0200)
commit3a193655b3bdb9634c753e9e7b73a56469249655
treecec9cc61131a4cb530488388dd8c7bd558a9031f
parente10a08f64de5a07216b5c6881274dbd8e410ea2f
Improve the logging message pattern

Add the log level and category name in the output. Only output the
thread ID and function name for qCDebug statements as they are not
necessary for general use and make the log harder to read.

Also make sure that the message pattern is set when NO_MSG_HANDLER is
used. Using an environment variable should have priority over it anyway.
src/libsync/logger.cpp