formatting and deleting log infos