Saving log from an ssh session into a file using tee

xterm -hold -e ssh -t user@server “screen /dev/ttyUSB0 115200 | tee /test/shared/sourav/sample.log2”

This is the command that I have tried. My aim is to capture the screenlog and save it in the file /test/shared/sourav/sample.log2 while its printed on the terminal as well.

However when I check the files in the folder /test/shared/sourav , such a file is not present in it.