Skip to main content

create_sink

Function create_sink 

Source
pub async fn create_sink(
    config: &EventSinkConfig,
) -> Result<Arc<dyn EventSink>, EventSinkError>
Expand description

Create a concrete EventSink from a config entry.

ยงErrors

When the type is not stdout or jsonl, when a jsonl sink names no path, or when its file cannot be opened for appending.