Readonly
attributesOptional
bodyOptional
eventReadonly
hrReadonly
hrReadonly
instrumentationReadonly
resourceOptional
severityOptional
severityOptional
Readonly
spanSets a single attribute on the log record.
The attribute key.
Optional
value: AnyValueThe attribute value.
The updated SdkLogRecord.
Sets multiple attributes on the log record.
The attributes to set.
The updated SdkLogRecord.
Sets the body of the log record.
The log body.
The updated SdkLogRecord.
Sets the event name for the log record.
The event name.
The updated SdkLogRecord.
Sets the severity number for the log record.
The severity number.
The updated SdkLogRecord.
Sets the severity text (log level) for the log record.
The severity text.
The updated SdkLogRecord.
A recording of a event. Typically the record includes a timestamp indicating when the event happened as well as other data that describes what happened, where it happened, etc.
Remarks
This interface is not intended to be implemented by users. To produce logs, use Logger#emit. To consume logs, implement LogRecordProcessor#onEmit. SdkLogRecord instances are created and managed by the SDK.