- Renamed to `LoggingFuncs`
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-10 21:51:44 +02:00
parent b47e81e7da
commit 51b5044ddd
1 changed files with 6 additions and 2 deletions

View File

@ -253,7 +253,7 @@ private class GoggaTransform : Transform
* Params:
* gLogger = the `GoggaLogger` identifier
*/
public mixin template Lekker(alias gLogger)
public mixin template LoggingFuncs(alias gLogger)
if(__traits(isSame, typeof(gLogger), GoggaLogger))
{
import std.meta : AliasSeq, aliasSeqOf;
@ -301,13 +301,17 @@ if(__traits(isSame, typeof(gLogger), GoggaLogger))
}
}
/**
* Tests using the mixin for method
* names
*/
unittest
{
GoggaLogger gLogger = new GoggaLogger();
gLogger.addHandler(new FileHandler(stdout));
gLogger.setLevel(Level.DEBUG);
mixin Lekker!(gLogger);
mixin LoggingFuncs!(gLogger);
DEBUG("fok", 2,2);
ERROR("fok", 2,2);