write the log to external storage(such as sdcard)