How can I find out the pin-out of a serial port?

Logs give any hint?