How to cut different log files on daily/size basis

User avatar
Gfast2
Posts: 182
Joined: Fri Aug 11, 2017 1:52 am

How to cut different log files on daily/size basis

Postby Gfast2 » Tue Jan 23, 2018 9:17 am

Hi ESP-IDF,

I'm working on esp32 based project which will log all stuffs generated by "ESP_LOGx()" into files placed in SD card.

Every one here is incredible helpful, and with the help of others I can now without any Problem log my trace into SD card.
(Related Post is here). And I do spend time reading Logging Library from esp32's docu.

My Question is: How to properly divide my log files on daily / log file size basis? Is there some API calls that I can use? or right now I've to write my own? (Each day a new file, when the size of the log file of this day is bigger then 10MB (some big issue triggered huge problem on this day for example), I should make a new log file. say "2018_01_23_log_2.txt" )

Cheers

Gfast2

Who is online

Users browsing this forum: No registered users and 146 guests