pub async fn from_prefix<'a, 'b, P, S>(
        prefix: P,
        file_name_suffix: S,
        config: EventWriterConfig,
    ) -> Result<Self>
    where
        P: Into<Cow<'a, str>>,
        S: Into<Cow<'b, str>>,
    {
        let (dir_prefix, file_name) = super::create_tf_style_path(prefix, file_name_suffix)?;
        async_std::fs::create_dir_all(&dir_prefix).await?;
        let path = dir_prefix.join(file_name);
        Self::create(path, config).await
    }
/// Build a writer writing events to a file, which path is specified by a path prefix and file name suffix.
Build a writer writing events to a file, which path is specified by a path prefix and file name suffix.
Build a writer writing events to a file which path is specified by a path prefix and file name suffix .
pub async fn from_prefix<'a, 'b, P, S>(
        prefix: P,
        file_name_suffix: S,
        config: EventWriterConfig,
    ) -> Result<Self>
    where
        P: Into<Cow<'a, str>>,
        S: Into<Cow<'b, str>>,
    {
        let (dir_prefix, file_name) = super::create_tf_style_path(prefix, file_name_suffix)?;
        async_std::fs::create_dir_all(&dir_prefix).await?;
        let path = dir_prefix.join(file_name);
        Self::create(path, config).await
    }
pub async fn from_prefix < ' a , ' b , P , S > ( prefix : P , file_name_suffix : S , config : EventWriterConfig , ) -> Result < Self > where P : Into < Cow < ' a , str > > , S : Into < Cow < ' b , str > > , { let ( dir_prefix , file_name ) = super :: create_tf_style_path ( prefix , file_name_suffix ) ? ; async_std :: fs :: create_dir_all ( & dir_prefix ) . await ? ; let path = dir_prefix . join ( file_name ) ; Self :: create ( path , config ) . await }
Build a writer writing events to a file, which path is specified by a path prefix and file name suffix.
Build a writer writing events to a file which path is specified by a path prefix and file name suffix .
prefix
P
file_name_suffix
S
config
EventWriterConfig
prefix
P
file_name_suffix
S
config
EventWriterConfig