02.04.2020, 11:44
If each string is 20 bytes long then your whole log will be at least 60MB in size. Most probably you won't be able to send that using e-mail.
As for writing into files you should not write to SD card often as it can quickly kill it. One solution is to write to a temporary file then move it to SD by the end of the day by using a scheduled script. There's a slight disadvantage that this file can be lost if the device is rebooted. You should also take care of deleting old log files.
As for writing into files you should not write to SD card often as it can quickly kill it. One solution is to write to a temporary file then move it to SD by the end of the day by using a scheduled script. There's a slight disadvantage that this file can be lost if the device is rebooted. You should also take care of deleting old log files.