Log.debug order (new here_

I created a simple code to learn

for (def i = 0; i <256; i++) {
log.debug “${i}”
}

The output is random: 192, 244,238, 236, 188,234, … you get the picture

How am I supposed to trace events with this? hints and ideas?

I’d be interested in this too. I found I just had to be more sparing with the logging (e.g. writing it after loops) and had to make the absence of debug information more obvious.