Optimizations:
Logs:
Here's how the output will look like:
The debug output window:
17:29.41 [dbg] some debug message after logs have been initialized 11
The console:
17:29.41 [app] hello, world 17:29.41 [app] coolio 4 17:29.41 [app] after logs have been initialized 10
The out.txt file:
17:29.41 [app] hello, world 17:29.41 [app] coolio 4 17:29.41 [app] after logs have been initialized 10 17:29.41 [dbg] some debug message after logs have been initialized 11
The err.txt file
17:29.41 [1] first error 3 17:29.41 [2] second error 5