Adding logging to app