From aa10eaf7a9801a91825ec873d35c0438bde2a640 Mon Sep 17 00:00:00 2001 From: zxj Date: Sat, 27 Jul 2024 19:33:05 +0800 Subject: [PATCH] add HowPack --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index c06db0b..427c296 100644 --- a/src/config.rs +++ b/src/config.rs @@ -127,17 +127,17 @@ impl Config { /// ```rust /// use fast_log::Config; /// use fast_log::consts::LogSize; - /// use fast_log::plugin::file_split::{PackType, RawFile, RollingType}; + /// use fast_log::plugin::file_split::{HowPack, PackType, RawFile, RollingType}; /// use fast_log::plugin::packer::LogPacker; /// fn new(){ /// fast_log::init( /// Config::new() /// .chan_len(Some(100000)) - /// .split::( + /// .split::( /// "target/logs/temp.log", /// RollingType::All, /// LogPacker {}, - /// PackType::BySize(LogSize::MB(1)), + /// HowPack::new(PackType::BySize(LogSize::MB(1))), /// ), /// ); /// }