Show example for setting up logging listener