Fix logger formatter with empty data