35 QByteArray localMsg = msg.toLocal8Bit();
36 const char* file = context.file ? context.file :
"";
37 const char* function = context.function ? context.function :
"";
40 std::cerr <<
"Debug: " << localMsg.constData() <<
" (" << file <<
":" << function <<
")" << std::endl;
43 std::cerr <<
"Info: " << localMsg.constData() <<
" (" << file <<
":" << function <<
")" << std::endl;
46 std::cerr <<
"Warning: " << localMsg.constData() <<
" (" << file <<
":" << function <<
")" << std::endl;
49 std::cerr <<
"Critical: " << localMsg.constData() <<
" (" << file <<
":" << function <<
")" << std::endl;
52 std::cerr <<
"Fatal: " << localMsg.constData() <<
" (" << file <<
":" << function <<
")" << std::endl;
void camitkQTestMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
Definition CamiTKQTestMessageHandler.h:34