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

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

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions std/logger/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The easiest way to create a log message is to write:
import std.logger;

void main() {
log("Hello World");
info("Hello World");
}
-------------
This will print a message to the `stderr` device. The message will contain
Expand Down Expand Up @@ -59,7 +59,7 @@ $(UL
$(LI `fatal`)
)
The default `Logger` will by default log to `stderr` and has a default
`LogLevel` of `LogLevel.all`. The default Logger can be accessed by
`LogLevel` of `LogLevel.info`. The default Logger can be accessed by
using the property called `sharedLog`. This property is a reference to the
current default `Logger`. This reference can be used to assign a new
default `Logger`.
Expand Down
Loading