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

std.logger has an ostensibly broken example and wrong docs #10581

Closed
0xEAB opened this issue Dec 10, 2024 · 0 comments · Fixed by #10582
Closed

std.logger has an ostensibly broken example and wrong docs #10581

0xEAB opened this issue Dec 10, 2024 · 0 comments · Fixed by #10582

Comments

@0xEAB
Copy link
Member

0xEAB commented Dec 10, 2024

std.logger provides a poor out-of-the-box experience.

  • Its hello-world example seems to be a no-op to the unsuspecting user as it prints nothing in the default configuration.

  • Furthermore, certain information in the docs is plain wrong as it never got updated throughout the revisions the code received.

    The default Logger will by default log to stderr and has a default LogLevel of LogLevel.all.

    This is wrong.

These issues sum up and lead to confusion (#10573) and scorn.

@0xEAB 0xEAB self-assigned this Dec 10, 2024
0xEAB added a commit to 0xEAB/phobos that referenced this issue Dec 10, 2024
…rong docs

Co-authored-by: Elias Batek <desisma@heidel.beer>
0xEAB added a commit to 0xEAB/phobos that referenced this issue Dec 11, 2024
…rong docs

Co-authored-by: Elias Batek <desisma@heidel.beer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant