formatting log summary with linefeeds