Skip to content

Commit a2b3ee3

Browse files
MikeShah0xEAB
andcommitted
Fix #10581std.logger has an ostensibly broken example and wrong docs
Co-authored-by: Elias Batek <[email protected]>
1 parent 9e7d2f3 commit a2b3ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/logger/package.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The easiest way to create a log message is to write:
1717
import std.logger;
1818
1919
void main() {
20-
log("Hello World");
20+
info("Hello World");
2121
}
2222
-------------
2323
This will print a message to the `stderr` device. The message will contain
@@ -59,7 +59,7 @@ $(UL
5959
$(LI `fatal`)
6060
)
6161
The default `Logger` will by default log to `stderr` and has a default
62-
`LogLevel` of `LogLevel.all`. The default Logger can be accessed by
62+
`LogLevel` of `LogLevel.info`. The default Logger can be accessed by
6363
using the property called `sharedLog`. This property is a reference to the
6464
current default `Logger`. This reference can be used to assign a new
6565
default `Logger`.

0 commit comments

Comments
 (0)