mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 05:00:35 +03:00
Fix #10581 – std.logger
has an ostensibly broken example and wrong docs
Co-authored-by: Elias Batek <desisma@heidel.beer>
This commit is contained in:
parent
b2ecb210a1
commit
8973596c05
1 changed files with 2 additions and 2 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue