LogField

class LogField(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

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.

Skipped during bindings generation

  • field value: gpointer

Since

2.50

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<LogField, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibLogFieldPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val key: String?

field name (UTF-8 string)

Link copied to clipboard

length of @value, in bytes, or -1 if it is nul-terminated