Function

GLib-2.0GLiblog_writer_format_fieldsSince 2.50

  • 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 MESSAGE and GLIB_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.

    Parameters

    Returns string

    string containing the formatted log message, in the character set of the current locale

    2.50