Add logging snippet