how to get the log from serial