add logger snippet