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

Add Logger.levels/0 #13136

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Conversation

c4710n
Copy link
Contributor

@c4710n c4710n commented Nov 22, 2023

This PR adds Logger.levels/0, which returns all the available levels of Logger.

It's useful when checking the levels provided by a user.


Edit: Is it possible to backport it to 1.16? Or, we have to wait a few month to use it in a stable version. (1.16 is in the RC state, I'm not sure if merging new features is allowed.)

lib/logger/lib/logger.ex Outdated Show resolved Hide resolved
@c4710n
Copy link
Contributor Author

c4710n commented Nov 23, 2023

The suggestions have been commited.

lib/logger/lib/logger.ex Outdated Show resolved Hide resolved
@josevalim josevalim merged commit 1ef9eaf into elixir-lang:main Nov 23, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

josevalim pushed a commit that referenced this pull request Nov 23, 2023
@c4710n c4710n deleted the zd/improve-logger branch November 23, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants