You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Log2file - Store log files in user specific folder #4596
I am the feature log2file in platformio. This is a very useful feature which I do use a lot.
Feature Request.
The problem I am facing is that the number of log files pile up in my project's root folder.
Often there are too many and I have to move the log files to another folder.
My request is that there is another variable in platformio.ini which allows me to specify the folder (within the project folder) in which the logs files are stored.
For example:
Platformio.ini:
monitor_filters = default, time, log2file ;
monitor_log_dir = logs; (new / not exisiting at this moment)
So the new variable "monitor_log_dir = logs" would place the logs in
C:\Users\username\Documents\PlatformIO\Projects\project_root\logs\
If the folder does not exist it should be created.
Hope this is clear and feedback is welcome. Also discussed this topic here
Activity
ivankravets commentedon Apr 12, 2023
Thanks for the report. PlatformIO will use the
libsfolder for saving monitor logs.Please re-test with
pio upgrade --dev.JeroenIoT commentedon Apr 13, 2023
monitor_filters = default, time, log2file ; adds time tracking to the TERMINAL and enables logginglogs(not inlibsas you wrote above)C:\Users\username\Documents\PlatformIO\Projects\pioProjectName\logslogsfolder does not exists it is automatically generatedStore device monitor logs in the project "logs" directory // Resolve p…