Couldn't create log directory

前端 未结 4 2031
借酒劲吻你
借酒劲吻你 2021-02-07 00:23

When I test my application on iPad it run perfectly i.e. call the database , create folder and perform other task but in console it show me

2015-05-12 1

4条回答
  •  耶瑟儿~
    2021-02-07 00:27

    The format you using for getting date string is "yyyy-MM-dd HH:mm:ss" which introduces a space in the result string. Remove the space in the formatter so that it looks like this "yyyy-MM-ddHH:mm:ss" and try the above code or you could replace the space in the resulting path and write data to the file

提交回复
热议问题