Exception put to file log

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
cz8pru
Posts: 1
Joined: Mon Feb 21, 2022 7:51 am

Exception put to file log

Post by cz8pru » Mon Feb 21, 2022 8:00 am

Hi,

I would like to know, if it is possible to save no managed Python exception message to file in Flash.

I have a system, which was running on device more than 7 days and after that, it got stuck. I would like to know, what was the reason.

Due to the fact, that it happen too rarely I need some debug tool to get more information...

Other possibility is to add to my device other device, which can log terminal UART communication to SD card, but this is not so cool ;)

Thanks for ideas and help

P

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: Exception put to file log

Post by KJM » Mon Feb 21, 2022 11:15 pm


shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Exception put to file log

Post by shaoziyang » Tue Feb 22, 2022 3:52 am

Please note that file writing speed is very slow, which may affect other tasks. It needs to be carefully scheduled.

Post Reply