Structure
MetadataFragment
Writes the combined metadata to the output, and requests a separator for the next fragment only if the metadata was not empty.
struct MetadataFragment
Overview
This fragment is considered to not have content if the metadata is empty.
Topics
Initializers
Instance Methods
func hasContent(record: inout LogRecord) -> BoolIndicates whether the fragment will write anything tooutputwhenwriteis called. This is used to determine whether writing a separator should be skipped.func write(inout LogRecord, to: inout FragmentOutput)Add this fragment’s output to the console text.
Relationships
Conforms To
LoggerFragmentSwift.SendableSwift.SendableMetatype