Logging mixin for classes / modules