log level, either from GLib.LogLevelFlags, or a user-defined level
key–value pairs of structured data forming the log message
TRUE to use ANSI color escape sequences when formatting the message, FALSE to not
string containing the formatted log message, in the character set of the current locale
Format a structured log message as a string suitable for outputting to the terminal (or elsewhere).
This will include the values of all fields it knows how to interpret, which includes
MESSAGEandGLIB_DOMAIN(see the documentation for GLib.log_structured). It does not include values from unknown fields.The returned string does not have a trailing new-line character. It is encoded in the character set of the current locale, which is not necessarily UTF-8.