daemon/logs: avoid JSONLog struct alloc in loop

This PR avoids allocating a new JSONLog struct in a for loop. I've sent this PR because I had this show up with 189 MB of memory for a torture test.
Ah, also I was wrong! It is better to use `io.WriteString`