Skip to content

Commit

Permalink
add HowPack
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 27, 2024
1 parent 11edd02 commit aa10eaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<RawFile, RollingType, LogPacker, PackType>(
/// .split::<RawFile, _, _, _>(
/// "target/logs/temp.log",
/// RollingType::All,
/// LogPacker {},
/// PackType::BySize(LogSize::MB(1)),
/// HowPack::new(PackType::BySize(LogSize::MB(1))),
/// ),
/// );
/// }
Expand Down

0 comments on commit aa10eaf

Please sign in to comment.