move logger to attr_accessor