24 template <
typename HandlerClass>
25 static bool enable(HandlerClass* instance,
void (HandlerClass::*hanlderFunction)(QtMsgType,
const QMessageLogContext&,
const QString&));
27 template <
typename HandlerClass>
28 static void disable(HandlerClass* instance);
30 static QString
symbol(
const QtMsgType& type);
37 using Function = std::function<void(QtMsgType,
const QMessageLogContext&,
const QString&)>;
38 using TargetMap = QMap<void*, Function>;
41 Q_INVOKABLE
void outputInternal(QtMsgType type,
const QMessageLogContext& context,
const QString& msg);
42 static void output(QtMsgType type,
const QMessageLogContext& context,
const QString& msg);
45 static Interceptor* me;
46 QtMessageHandler systemHandler;