HomePhabricator

rust: Add a log file rotation utility

Authored by SimonSapin.

Description

rust: Add a log file rotation utility

This is ported to Rust from mercurial/loggingutil.py.

The "builder" pattern is used to make it visible at call sites what the two
numeric parameters mean. In Python they might simply by keyword arguments.

Differential Revision: https://phab.mercurial-scm.org/D10010

Details

Committed
SimonSapinFeb 11 2021, 9:51 AM
Differential Revision
D10010: rust: Add a log file rotation utility
Parents
rHGbc08c2331f99: rust: Add a `ConfigValueParseError` variant to common errors
Branches
Unknown
Tags
Unknown