Use gogga logger

This commit is contained in:
Tristan B. Velloza Kildaire 2023-02-21 18:08:50 +02:00
parent 8781368d3c
commit 76ae699aa4
2 changed files with 6 additions and 3 deletions

View File

@ -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.",

View File

@ -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