write log files in interal storage
temp