From 76ae699aa438e8fe90e84c20e6649ff5b83267ff Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Tue, 21 Feb 2023 18:08:50 +0200 Subject: [PATCH] Use gogga logger --- dub.json | 1 + source/app.d | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dub.json b/dub.json index 7654efd..ff2d2c1 100644 --- a/dub.json +++ b/dub.json @@ -5,6 +5,7 @@ "copyright": "Copyright © 2023, Tristan B. Velloza Kildaire", "dependencies": { "dlog": "~>0.0.6", + "gogga": "~>1.0.0", "vibe-d": "~>0.9.5" }, "description": "A minimal D application.", diff --git a/source/app.d b/source/app.d index 7d7cc28..3d81d9d 100644 --- a/source/app.d +++ b/source/app.d @@ -2,15 +2,17 @@ import std.stdio; import vibe.vibe; import std.json; -import dlog : DefaultLogger, DLogger = Logger; + +import gogga; // TODO: Investigate if we need the belowe (I copied it from Birchwood) -__gshared DLogger logger; +__gshared GoggaLogger logger; __gshared static this() { - logger = new DefaultLogger(); + logger = new GoggaLogger(); } + /** * Handles an incoming websocket connection