Skip to content

Instance Method

write(_:to:)

Add this fragment’s output to the console text.
func write(_ record: inout LogRecord, to output: inout FragmentOutput)

Discussion

Fragments are allowed to mutate the LogRecord seen by later fragments in the pipeline, but this should generally be done before any fragments write text to avoid inconsistencies in the final message.