Crates.io | turnstiles |
lib.rs | turnstiles |
version | 0.4.1 |
source | src |
created_at | 2021-12-22 05:44:59.849635 |
updated_at | 2022-08-17 02:27:11.675084 |
description | Seamless file rotation |
homepage | https://github.com/Zylatis/turnstiles |
repository | https://github.com/Zylatis/turnstiles |
max_upload_size | |
id | 501498 |
size | 39,316 |
A WIP library which wraps the io::Write
trait to enable file rotation i.e. for logs. The goal is to enable file rotation at the file handle level and do so with as few dependencies as possible.
Implemented/planned rotation conditions:
There are also three options to prune old logs:
This is currently in active development and may change/break often. Every effort will be taken to ensure that breaking changes that occur are reflected in a change of at least the minor version of the package, both in terms of the API and the generation of log files. Versions prior to 0.2.0 were so riddled with bugs I'm amazed I managed to put my pants on on those days I was writing it.
See docs here for notes on how it works, example usage, and error handling.
impl log::Log
.atomicwrites
turnstiles
?It's a metal thing that rotates, and also the name of the Billy Joel album which has Summer, Highland Falls
on it, one of my favourite songs.