pub async fn create<P>(path: P, config: EventWriterConfig) -> Result<Self>
    where
        P: AsRef<Path>,
    {
        let writer = BufWriter::new(File::create(path).await?);
        Self::from_writer(writer, config)
    }
/// Build a writer writing events to a file.
Build a writer writing events to a file.
Build a writer writing events to a file .
pub async fn create<P>(path: P, config: EventWriterConfig) -> Result<Self>
    where
        P: AsRef<Path>,
    {
        let writer = BufWriter::new(File::create(path).await?);
        Self::from_writer(writer, config)
    }
pub async fn create < P > ( path : P , config : EventWriterConfig ) -> Result < Self > where P : AsRef < Path > , { let writer = BufWriter :: new ( File :: create ( path ) . await ? ) ; Self :: from_writer ( writer , config ) }
Build a writer writing events to a file.
Build a writer writing events to a file .
path
P
config
EventWriterConfig
path
P
config
EventWriterConfig