Here's what the output will be:
The console:
this is so cool 1 this is so cool again 2 hello, world good to be back ;) 4
The err.txt file:
first error 3 second error 5