GLib.LogField - Structures - GLib 2.0 (original) (raw)
Fields¶
Name | Type | Access | Description |
---|---|---|---|
key | str | r/w | field name (UTF-8 string) |
length | int | r/w | length of value, in bytes, or -1 if it is nul-terminated |
value | object | r/w | field value (arbitrary bytes) |
Methods¶
None
Details¶
class GLib.LogField¶
Structure representing a single field in a structured log entry. See g_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.
New in version 2.50.