Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.1, 5.11.1
-
None
-
-
3ed8dc37884bac67414c0840e27b5094a69cfdcd
Description
qSetMessagePattern is not working as it should on Android platform.
Setting message pattern and calling qInfo.
qSetMessagePattern("%{appname} : %{message}"); qInfo() << "TEST MESSAGE!";
Got double log message pattern. With appname, pid, function, message...
Android:
07-13 12:46:59.619 I/AppName (28718): ../appname/src/main.cpp:80 (int main(int, char**)): AppName : TEST MESSAGE
MacOS:
AppName : TEST MESSAGE
Check qtbase/src/corelib/global/qlogging.cpp\
__android_log_print(priority, qPrintable(QCoreApplication::applicationName()),
"%s:%d (%s): %s\n", context.file, context.line,
context.function, qPrintable(formattedMessage));
__android_log_print
int __android_log_print( int prio, const char *tag, const char *fmt, ... )
Attachments
Issue Links
- relates to
-
QTBUG-70668 iOS: qSetMessagePattern() does not affect the output from qDebug et al.
- Reported