:right-sidebar: True LogField =================================================================== .. currentmodule:: gi.repository.GLib .. versionadded:: 2.50 .. class:: LogField(*args, **kwargs) :no-contents-entry: Structure representing a single field in a structured log entry. See :func:`~gi.repository.GLib.log_structured` for details. Log fields may contain arbitrary values, including binary with embedded nul bytes. If the field contains a string, the string must be UTF-8 encoded and have a trailing nul byte. Otherwise, ``length`` must be set to a non-negative value. Fields ------ .. rst-class:: interim-class .. class:: LogField :no-index: .. attribute:: key Field name (UTF-8 string) .. attribute:: length Length of ``value``\, in bytes, or -1 if it is nul-terminated .. attribute:: value Field value (arbitrary bytes)