- Removed `gprintln` and `DebugLevel` completely
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-11 17:28:56 +02:00
parent 5ca3760e5f
commit 7577118978
1 changed files with 1 additions and 32 deletions

View File

@ -33,35 +33,4 @@ static this()
}
// Bring in helper methods
mixin LoggingFuncs!(logger);
// TODO: Remove this
public enum DebugType
{
INFO,
WARNING,
ERROR,
DEBUG
}
// TODO: Change to actually use error, etc. directkly on GoggaLogger
public void gprintln(messageT)(messageT message, DebugType debugType = DebugType.INFO)
{
if(debugType == DebugType.DEBUG)
{
logger.dbg(message);
}
else if(debugType == DebugType.INFO)
{
logger.info(message);
}
else if(debugType == DebugType.WARNING)
{
logger.warn(message);
}
else
{
logger.error(message);
}
}
mixin LoggingFuncs!(logger);