Commit d394ca7f authored by Kai Koehne's avatar Kai Koehne Committed by Qt by Nokia
Browse files

QtDebug: Include file, line, function information


Record the file, line, and function where a qDebug, qWarning, qCritical
or qFatal call happens, and make this information available in a custom
message handler.

The patch uses the C preprocessor to replace qDebug, qWarning, ... with
a line that also records the current file, line, and function. Custom
message handlers can access this information via a new QMessageLogContext
argument.

Change-Id: I0a9b89c1d137e41775932d3b1a35da4ebf12d18d
Reviewed-by: default avatarDavid Faure <faure@kde.org>
parent ea783ff5
No related merge requests found
Showing with 674 additions and 139 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment