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

Update env_logger to 0.11 #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NoisyCoil
Copy link

This PR bumps the env_logger dependency to v0.11. As noted in the commit message:

env_logger 0.11 removed the API around which this library is written and offloaded its functionality to the anstyle crate, which is re-exported as env_logger::fmt::style. anstyle's API is very different than v0.10's: anstyle just provides ANSI escape codes which must then be used in format strings. Opening escape codes are printed with "{}" and closing escape codes are printed with "{:#}". fn colored_level must be re-written from scratch (and nicely enough can be marked as const).

Closes: #59

env_logger 0.11 removed the API around which this library is written and
offloaded its functionality to the anstyle crate, which is re-exported as
env_logger::fmt::style. anstyle's API is very different than v0.10's:
anstyle just provides ANSI escape codes which must then be used in format
strings. Opening escape codes are printed with "{}" and closing escape
codes are printed with "{:#}". `fn colored_level` must be re-written
from scratch (and nicely enough can be marked as const).
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.

Update env_logger to 0.11
1 participant