4 releases

Uses old Rust 2015

0.2.0 Jul 20, 2016
0.1.2 Jun 23, 2016
0.1.1 May 25, 2016
0.1.0 May 23, 2016

#5 in #appender

Download history 98/week @ 2023-11-27 52/week @ 2023-12-04 33/week @ 2023-12-11 128/week @ 2023-12-18 42/week @ 2023-12-25 9/week @ 2024-01-01 53/week @ 2024-01-08 202/week @ 2024-01-15 79/week @ 2024-01-22 66/week @ 2024-01-29 71/week @ 2024-02-05 89/week @ 2024-02-12 162/week @ 2024-02-19 152/week @ 2024-02-26 175/week @ 2024-03-04 117/week @ 2024-03-11

621 downloads per month

MIT/Apache

86KB
1.5K SLoC

log4rs-rolling-file

Build Status

Documentation

A rolling file appender for log4rs


lib.rs:

A rolling file appender for log4rs.

Logging directly to a file can be a dangerous proposition for long running processes. You wouldn't want to start a server up and find out a couple weeks later that the disk is filled with hundreds of gigabytes of logs! A rolling file appender alleviates these issues by limiting the amount of log data that's preserved.

Like a normal file appender, a rolling file appender is configured with the location of its log file and the encoder which formats log events written to it. In addition, it holds a "policy" object which controls when a log file is rolled over and how the old files are archived.

For example, you may configure an appender to roll the log over once it reaches 50 megabytes, and to preserve the last 10 log files.

Dependencies

~3.5MB
~64K SLoC