addFields

Adds the given log fields to the log. This is useful when you have a collection of previously constructed fields from the field/rawJsonField top-level functions, that you want to add to a single log.

  • If you want to create new fields and add them to the log, you should instead use LogBuilder.field to create the fields in-place

  • If you want to add fields to all logs in a scope, you should instead use withLoggingContext