pub unsafe fn q_format_log_message(
    type_: QtMsgType,
    context: impl CastInto<Ref<QMessageLogContext>>,
    buf: impl CastInto<Ref<QString>>
) -> CppBox<QString>
Expand description

Generates a formatted string out of the type, context, str arguments.

Calls C++ function: QString qFormatLogMessage(QtMsgType type, const QMessageLogContext& context, const QString& buf).

C++ documentation:

Generates a formatted string out of the type, context, str arguments.

qFormatLogMessage returns a QString that is formatted according to the current message pattern. It can be used by custom message handlers to format output similar to Qt's default message handler.

The function is thread-safe.

This function was introduced in Qt 5.4.

See also qInstallMessageHandler() and qSetMessagePattern().