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