If you've selected this schematic then you need to log full duplex data. Therefore it isn't possible to write data from both ports to one log file, because at one moment of time the program can receive and write data from 2 port. On this case data in the log file will be mixed/scrambled.
(Unrelated, but is it possible to log hex data without the '#' symbol? I tried "%02X", but the leading zero was stripped off so that 0x06 was logged as " 6")
Please, use the following format:
%.2X