@dallinger.command()<EOL>@click.option("<STR_LIT>", default=None, callback=verify_id, help="<STR_LIT>")<EOL>def monitor(app):
heroku_app = HerokuApp(dallinger_uid=app)<EOL>webbrowser.open(heroku_app.dashboard_url)<EOL>webbrowser.open("<STR_LIT>")<EOL>heroku_app.open_logs()<EOL>check_call(["<STR_LIT>", heroku_app.db_uri])<EOL>while _keep_running():<EOL><INDENT>summary = get_summary(app)<EOL>click.clear()<EOL>click.echo(header)<EOL>click.echo("<STR_LIT>".format(app))<EOL>click.echo(summary)<EOL>time.sleep(<NUM_LIT:10>)<EOL><DEDENT>
Set up application monitoring.