Add logger to example.