Rangana Herath said it was a 'privilege'” to represent Sri Lanka after retiring as the most prolific left-arm spinner in Test history.