- If `DBG_VERBOSE_LOGGING` build variable is set then use verbose logging style
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-13 23:17:16 +02:00
parent ba20da444c
commit 5f51f5afc0
1 changed files with 13 additions and 2 deletions

View File

@ -24,8 +24,19 @@ private GoggaLogger logger;
static this()
{
logger = new GoggaLogger();
// TODO: Still decide on this
logger.mode(GoggaMode.RUSTACEAN);
GoggaMode mode;
version(DBG_VERBOSE_LOGGING)
{
mode = GoggaMode.RUSTACEAN;
}
else
{
mode = GoggaMode.SIMPLE;
}
logger.mode(mode);
// TODO: In future make this configurable
logger.setLevel(Level.DEBUG);