Adding logging to application