make mixin a function of logger