Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport changes from master #1936

Merged
merged 3 commits into from
Feb 17, 2022
Merged

backport changes from master #1936

merged 3 commits into from
Feb 17, 2022

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Feb 17, 2022

this backports #1930 along with some documentation improvements, to prep for tracing and tracing-subscriber releases

nicolaasg and others added 3 commits February 17, 2022 11:47
## Motivation

I was scrolling through the code in `tracing/src/macros.rs` and noticed
a possibly wrong log level in the `warn!` macro:

https://github.com/tokio-rs/tracing/blob/4e65750b13721fee7a7ac05b053e1b9c3d21244f/tracing/src/macros.rs#L1698

## Solution

This branch changes the level to `Level::WARN` in the incorrect macro
 arm.

Fixes: #1929

Co-authored-by: Nicolaas Geldenhuys <[email protected]>
## Motivation

This PR adds [`tracing-forest`](https://crates.io/crates/tracing-forest)
to the list of related crates. `tracing-forest` provides contextual
coherence when writing logs, and is being used by projects like
[Kanidm](https://github.com/kanidm/kanidm/).

## Solution

I added it to the documentation in `lib.rs` and in the README. Am I
missing anything else?
## Motivation

Currently, the documentation for the `fmt` module shows examples of the
output for each formatter in the top-level module. This is a lot of text
that makes finding other things in the documentation more difficult.
Meanwhile, the type-level docs for the various formatters are quite
terse and don't offer much useful information.

## Solution

This branch moves the example output to the type-level docs for the
various formatters, and links to it from the list of formatters. I've
also updated and expanded some of the documentation for the formatters,
and added a similar list of formatters to the `fmt::format` module.
Hopefully, this makes things easier to navigate?

Finally, I've re-generated all example output with the latest versions
of each formatter.

## Alternatives

Alternatively, we could not move the example output. The initial
intention for putting it in the top-level `fmt` module docs was to make
it _very_ easy to find what the different formats look like. Perhaps
this is worth having a lot of text to scroll through in the
module-level docs?
@hawkw hawkw requested a review from a team as a code owner February 17, 2022 19:53
@hawkw hawkw enabled auto-merge (rebase) February 17, 2022 19:53
@hawkw hawkw merged commit 94379a3 into v0.1.x Feb 17, 2022
@hawkw hawkw deleted the eliza/backport-1927 branch February 17, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants