Specifying a monitor log directory

The log2file filter’s log path is defined as

so it will always log to the <current directory>/platformio-device-monitor-<data>.log file. If you want to log to a different directory, you woudl have to change <current directory> by invoking the PlatformIO monitor / run command from a different folder.

cd /logs
pio run -d <your original project path> -t monitor

For everything else, file an issue in Issues · platformio/platformio-core · GitHub.

1 Like