replace 'attr_writer :logger' with 'def logger='