creation of logger moved to trait