Replace id= and logger= methods with attr_writer.