From 646be85ee7bfbba0e29feeecd36f8bfc210f3063 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Tue, 9 Apr 2024 17:27:00 +0200 Subject: [PATCH] GoggaLogger - Uses the new Dlog API --- source/gogga/core.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/gogga/core.d b/source/gogga/core.d index 54705d7..c8a994a 100644 --- a/source/gogga/core.d +++ b/source/gogga/core.d @@ -1,7 +1,7 @@ module gogga.core; -import dlog.nu.core; -import dlog.nu.basic; +import dlog.core; +import dlog.basic; import std.conv : to; @@ -329,7 +329,7 @@ public final class GoggaLogger : BasicLogger string c4 = __MODULE__, string c5 = __FUNCTION__, string c6 = __PRETTY_FUNCTION__) { - doLog(segments, GoggaCompInfo(c1, c2, c3, c4, c5, c6), Level.WARNING); + doLog(segments, GoggaCompInfo(c1, c2, c3, c4, c5, c6), Level.WARN); } /** @@ -381,7 +381,7 @@ private byte[] debugColor(string text, Level level) messageBytes = cast(byte[])[27, '[','3','2','m']; } /* If WARN, set yellow */ - else if(level == Level.WARNING) + else if(level == Level.WARN) { messageBytes = cast(byte[])[27, '[','3','1', ';', '9', '3', 'm']; }