Class LogField

All Implemented Interfaces:
PointerInterface

public class LogField extends 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.

https://docs.gtk.org/glib/struct.LogField.html

  • Field Details

  • Constructor Details

    • LogField

      public LogField(PointerContainer pointer)
    • LogField

      public LogField()
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFieldKey

      public void setFieldKey(Str key)
      field name (UTF-8 string)
    • getFieldKey

      public Str getFieldKey()
      field name (UTF-8 string)
    • setFieldValue

      public void setFieldValue(Pointer value)
      field value (arbitrary bytes)
    • getFieldValue

      public Pointer getFieldValue()
      field value (arbitrary bytes)
    • setFieldLength

      public void setFieldLength(long length)
      length of @value, in bytes, or -1 if it is nul-terminated
    • getFieldLength

      public long getFieldLength()
      length of @value, in bytes, or -1 if it is nul-terminated