mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Log file name and line number
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
parent
6b32d9a694
commit
1156d82594
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ Logger *Logger::instance()
|
|||
Logger::Logger(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
qSetMessagePattern(QStringLiteral("%{time yyyy-MM-dd hh:mm:ss:zzz} [ %{type} %{category} ]%{if-debug}\t[ %{function} ]%{endif}:\t%{message}"));
|
||||
qSetMessagePattern(QStringLiteral("%{time yyyy-MM-dd hh:mm:ss:zzz} [ %{type} %{category} %{file}:%{line} "
|
||||
"]%{if-debug}\t[ %{function} ]%{endif}:\t%{message}"));
|
||||
_crashLog.resize(CrashLogSize);
|
||||
#ifndef NO_MSG_HANDLER
|
||||
qInstallMessageHandler([](QtMsgType type, const QMessageLogContext &ctx, const QString &message) {
|
||||
|
|
Loading…
Reference in a new issue