Store logs in file when no internet connection