Hello,
We can see all debug print on monitor screen by using "make monitor" command. Now i want to save all that logs in one file. Is it possible means how can generate log file to debug purpose?
Thanks and Regards,
Kishan Patel.
generate log file
Re: generate log file
My notes seem to say that all debug/logging is written by calling the function that is registered with the esp_log_set_vprintf() ESP-IDF function. By default this writes to serial but looks like it could be used to write to an arbitrary location.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: generate log file
If you are running on windows then use Teraterm and open a log file. Doesn't get any easier than that.
John A
John A
-
- Posts: 45
- Joined: Wed Aug 30, 2017 4:56 am
Re: generate log file
Hello Fly135,
Actually i want to generate file on board means esp32. After some time which can be accessible.
Regards,
Kishan Patel.
Actually i want to generate file on board means esp32. After some time which can be accessible.
Regards,
Kishan Patel.
Re: generate log file
You can always create a file system on the flash and save it like a normal file. But that will require another block of code to transfer it to a host. Which could be simply reading the file, printing it, and capturing it with Teraterm.
John A
John A
Re: generate log file
Log files can grow rapidly and take precious flash space. One option is to log in separate log partition or better attach an external SD card which can be read faster in a pc.
-
- Posts: 45
- Joined: Wed Aug 30, 2017 4:56 am
Re: generate log file
Hello,
Thanks for reply. Is there any example available for log file?
Regards,
Kishan Patel.
Thanks for reply. Is there any example available for log file?
Regards,
Kishan Patel.
-
- Posts: 6
- Joined: Mon Jul 06, 2020 11:28 pm
Re: generate log file
idf.py -p port monitor | tee run.log
-
- Posts: 1
- Joined: Wed Nov 09, 2022 6:06 am
Re: generate log file
any example for esp32 idf log file store in flash with partition
Log file in .txt file and max 5kb file size maximum file no 5.
Log file in .txt file and max 5kb file size maximum file no 5.
Who is online
Users browsing this forum: No registered users and 67 guests