Class (GI Struct)

GLib-2.0GLibLogFieldSince 2.50

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.

2.50

Index

Constructors

Properties

Constructors

  • Parameters

    • Optionalproperties: Partial<{ key: string; length: number; value: any }>

    Returns LogField

Properties

key: string
length: number
value: any
$gtype: GType<LogField>