Integrates logging with py-click.