Encodes record as one YAML document frame beginning with ---.
record
---
@override String encode(Record record) => encodeYamlFileEvent(record);