addFields

Adds the given log fields to the log. This is useful when you have a list 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 call LogBuilder.field to create the fields in-place

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