Format the log messages in the log shipper thread