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.
May be use `io.WriteString` here too?