Optimizations:
Logs:
Here's how the output will look like:
The debug output window:
18:59.24 this is so cool 1 18:59.24 this is so cool again 2
The console:
18:59.24 this is so cool 1 18:59.24 this is so cool again 2 18:59.24 hello, world 18:59.24 good to be back ;) 4
The out.txt file:
18:59.24 hello, world 18:59.24 good to be back ;) 4
The err.txt file
18:59.24 [1] first error 3 18:59.24 [2] second error 5