Standardize on capitalization of log levels #183
Labels
No labels
bug
duplicate
easy
enhancement
help wanted
invalid
question
rfc
structured-logging
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-rust-lang/log#183
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Display impl generates all caps.
But all the env_logger example code uses lowercase.
The FromStr impl is case insensitive so this is fine, but it makes it hard to pin down which one makes more sense for the Serialize impl to generate (#143).
I'd think it fairly reasonable to have all configuration and documentation name levels with all lowercase, and have any end-user-displaying be all uppercase. I think a distinction between configuration&documentation vs. logging display clarifies this some - but then should the Display implementation assume that it's being passed to an end user/logger?
No progress here. Do we want to make any changes?
cc @alexcrichton @sfackler
I would be inclined to believe the current behavior is the best solution.
Display::fmt, for directly displaying log levels, is all-caps, and everything configuration related (Serialize, Deserialize, examples, etc.) is lower case.I'd also be fine with the current behavior as @daboross mentioned
👍
Shouldn't this be closed now?