make logging to a mixin