Add logging to command line app.