Correct [log type=error|debug] final newline behavior

It shouldn't quote the final newline with > since ::logError
doesn't. (And because it makes a mess of the log.)