Validates the options; throws ValidationError.
Optional ReadonlyfullReadonlyhostOptional ReadonlylevelSyslog level 0–7.
ReadonlyshortOptional ReadonlytimestampUnix seconds (millisecond precision).
ReadonlyversionAlways "1.1".
Additional fields with their _ keys.
UTF-8 JSON bytes.
Sets an additional field (name or _name). The key is validated
(validateGelfFieldKey); the value is mapped by gelfFieldValue and a null
value removes the field. Returns this for chaining.
The GELF wire object.
Compact JSON text.
StaticfromConverts a log record (decision 3): host = resource["host.name"] (else options.host,
else os.hostname()), short_message = body ("-" when blank), timestamp, level from the
severity, resource attributes flattened with dotted keys (except host.name), then the record
attributes, then _trace_id, _span_id, _trace_flags. Keys are sanitised with
gelfFieldKey, values mapped with gelfFieldValue.
One GELF 1.1 message. Build it with the constructor and setField, or from a LogRecord with fromLogRecord; serialise with toJSON / encode.