From 8973596c05d4bcb9fc8ef735f06618ed2209a05e Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 4 Dec 2024 11:25:36 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20#10581=20=E2=80=93=20`std.logger`=20has?= =?UTF-8?q?=20an=20ostensibly=20broken=20example=20and=20wrong=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Elias Batek --- std/logger/package.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/logger/package.d b/std/logger/package.d index 215ca20b8..5a8474914 100644 --- a/std/logger/package.d +++ b/std/logger/package.d @@ -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`.