Add logging to application