Skip to content

Releases: rbatis/fast_log

v1.6.10

31 Oct 03:04
Compare
Choose a tag to compare

v1.6.10

  • use DateTime display_stand of '2023-12-12 00:00:00.000000'

v1.6.9

20 Oct 14:48
Compare
Choose a tag to compare

v1.6.9

  • up memmap2 = {version = "0.9.0", optional = true}

v1.6.8

19 Oct 10:16
Compare
Choose a tag to compare

v1.6.8

  • up fast_log version

v1.6.7

13 Oct 13:34
Compare
Choose a tag to compare

v1.6.7

  • up fastdate = "0.2"

v1.6.5

20 Sep 02:40
Compare
Choose a tag to compare

v1.6.5

  • support DateLogPacker ,you can see code
  • support Keep trait

v1.6.2

13 Sep 03:11
Compare
Choose a tag to compare

v1.6.2

  • use Path replace PathBuf

v1.6.1

09 Aug 02:43
Compare
Choose a tag to compare

fast_log v1.6.1 Release Notes

Main Updates

  • Added zero-copy mmap file logging for better performance under high load.

  • Introduced MmapFile struct to implement mmap file logging. It implements the FilePlugin interface.

  • Users can configure MmapFile for mmap logging via the split option:

Need to enable features = ["mmap"] in Cargo.toml to use mmap.

split::<MmapFile, LogPacker>(
    "target/logs/mmap.log",
    LogSize::MB(10),
    RollingType::Size,
    LogPacker{}, 
)
  • MmapFile supports rolling files by size or time.

  • Standard file logging still available, both can be used together.

  • Optimized performance and resource usage of logging.

Usage Notes

  • Require Rust 1.70 or above.

  • Need to enable features = ["mmap"] in Cargo.toml to use mmap.

  • MmapFile works on Linux, Windows, OSX etc.

  • Avoid too large file size when rolling by size to limit memory use.

  • Still use standard IO to read logs, mmap reading not recommended.

Full Changelog

  • feat: add mmap file logging
  • feat: new MmapFile struct
  • docs: update docs and examples
  • refactor: optimize core logging path
  • test: more tests
  • chore: upgrade dependencies etc.

Feel free to ask questions, report issues or suggest improvements!

v1.5.57

20 Jul 02:57
Compare
Choose a tag to compare

v1.5.57

  • file allow not have suffix

v1.5.56

19 Jul 08:42
Compare
Choose a tag to compare

v1.5.56

  • support
fast_log::init(
        Config::new()
            .chan_len(Some(100000))
            .console()
            .file_loop("sloop.log", LogSize::KB(1)),
    )

v1.5.53

19 Feb 10:15
Compare
Choose a tag to compare

v1.5.53

  • edit format