This is an archive of the discontinued Mercurial Phabricator instance.

rust: add logging utils
ClosedPublic

Authored by Alphare on Mar 6 2020, 12:52 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Commits
rHG82f51ab7a2dd: rust: add logging utils
Summary

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.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

Alphare created this revision.Mar 6 2020, 12:52 PM
Alphare updated this revision to Diff 20709.Mar 11 2020, 11:52 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.