Reduce log messages from a list to a string.