Sometimes it's handy to just write debugging information to say a Terminal or iTerm window that is already open. That's what I was trying to do when... On macOS pySerial open()ing a pseudo terminal ...
ceremcem@cca-erik:~$ socat -d -d pty,raw,echo=0 pty,raw,echo=0 2015/08/03 23:42:40 socat[31540] N PTY is /dev/pts/13 2015/08/03 23:42:40 socat[31540] N PTY is /dev/pts/15 2015/08/03 23:42:40 ...