better logging on missing format, and allow to configure format on a type on the index level