taught the log function how to handle multiline messages