add prompt logging support