HomePhabricator

rust: add logging utils

Authored by Alphare.

Description

rust: add logging utils

This change adds the log crate, the community-approved logging facade backed
by Rust core developers as well as the logging-consumer crate simple_logger
to build a foundation for logging from Rust.

Using this setup allows us to choose how to log depending on the way hg-core
is used: if it's within the context of hg-cpython, we might not want to use
it the same way as with a direct cli for example.

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

Details

Committed
AlphareFri, Mar 6, 12:08 PM
Differential Revision
D8252: rust: add logging utils
Parents
rHGfe7d2cf0b429: rust-status: traverse working directory in parallel
Branches
Unknown
Tags
Unknown