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

Co-authored-by: Elias Batek <desisma@heidel.beer>
This commit is contained in:
Mike 2024-12-04 11:25:36 -05:00 committed by The Dlang Bot
parent b2ecb210a1
commit 8973596c05

View file

@ -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
@ -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`.