C

<platforminterface/log.h> - Log printing

Provides functions to print logs. More...

Header: #include <platforminterface/log.h>

Functions

int log(const char *format, ...)

Detailed Description

This header file contains all the functions for printing logs of the platform interface. These functions are used by the Qt Quick Ultralite core library and can also be used by the platform adaptation.

Function Documentation

[since Qt Quick Ultralite (Platform) 1.9] int log(const char *format, ...)

Prints arguments defined by ... according to the format string. Writes the output to Qul::Platform::PlatformContext::consoleWrite.

format is a pointer to a null-terminated multi-byte string, specifying how to interpret the data.

... contains arguments specifying data to print.

Returns the number of characters written successfully or a negative value if an error occurred.

Note: Format string parsing is equivalent to C++11 std::printf.

This function was introduced in Qt Quick Ultralite (Platform) 1.9.

See also Qul::Platform::PlatformContext::consoleWrite().

Available under certain Qt licenses.
Find out more.