LogField

class LogField(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null) : ProxyInstance

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.

Since

2.50

Constructors

Link copied to clipboard
constructor()

Allocate a new LogField.

constructor(scope: <Error class: unknown class>)

Allocate a new LogField using the provided AutofreeScope.

constructor(key: String?, value: <Error class: unknown class>, length: Long)

Allocate a new LogField.

constructor(key: String?, value: <Error class: unknown class>, length: Long, scope: <Error class: unknown class>)

Allocate a new LogField using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val glibLogFieldPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?
Link copied to clipboard
var key: String?

field name (UTF-8 string)

Link copied to clipboard

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

Link copied to clipboard
var value: <Error class: unknown class>

field value (arbitrary bytes)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String