OptionalappApplication name token placed in the message header.
OptionaldefaultDefault SD-ID used when structured data objects omit sdId. When omitted,
the effective default falls back to appName.
OptionalfacilitySyslog facility. Accepts an integer in the range 0 through 23 or a
facility name such as "local4".
OptionalhostnameHostname token placed in the message header. Defaults to
os.hostname().
OptionalmsgMessage identifier token placed in the message header.
OptionalprocProcess identifier token placed in the message header. Defaults to
process.pid.
OptionalseveritySeverity where 0 is emergency, 1 is alert, and so on. Accepts either
numeric severity codes (0 through 7) or severity names such as
"error" and "warning".
OptionalstructuredStructured data as a raw string, a single structured data object, or an array of structured data objects.
OptionaltimestampMessage timestamp. Accepts an RFC 3339 date-time string (e.g.,
2026-04-01T00:00:00.000Z) or a JavaScript Date instance. When
omitted, the current time is used.
Options for message generation.
All properties are optional. When omitted, RFC 5424-friendly defaults or values from the current runtime environment are used.