move logger to mixin.