pub async fn create_sink( config: &EventSinkConfig, ) -> Result<Arc<dyn EventSink>, EventSinkError>
Create a concrete EventSink from a config entry.
EventSink
When the type is not stdout or jsonl, when a jsonl sink names no path, or when its file cannot be opened for appending.
stdout
jsonl