From 8e9f060eb58b1c125bc02200e9373c042abe307f Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 2 Mar 2023 16:11:02 +0200 Subject: [PATCH] Logging - Upgraded to `gogga` `v2.1.2` - Don't include the `gogga` module import as part of the mixin - Set the mode of gogga ro `GoggaMode.TwoKTwenty3` --- dub.json | 2 +- source/nostril/logging.d | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dub.json b/dub.json index 3c67c3d..c3d0a8b 100644 --- a/dub.json +++ b/dub.json @@ -4,7 +4,7 @@ ], "copyright": "Copyright © 2023, Tristan B. Velloza Kildaire", "dependencies": { - "gogga": "2.1.1", + "gogga": "2.1.2", "vibe-d": "~>0.9.5" }, "description": "A minimal D application.", diff --git a/source/nostril/logging.d b/source/nostril/logging.d index 8165cc8..f4a6587 100644 --- a/source/nostril/logging.d +++ b/source/nostril/logging.d @@ -1,11 +1,12 @@ module nostril.logging; +import gogga; + // NOTE: If we include threads then use `__gshared` so we have // ... one logger for the whole threadgroup and not a per-TLS // ... (per-thread) logger (as we do below) private mixin template LoggerSetup() { - import gogga; GoggaLogger logger; static this() { @@ -15,6 +16,8 @@ private mixin template LoggerSetup() { logger.enableDebug(); } + + logger.mode(GoggaMode.TwoKTwenty3); } }