Add logging metadata