While not required for project completion this feature will be handy and a nice usability add.
Essentially many threads are calling log_msg and this results in messages getting garbled by outputting them to stdout stderr at the same time. We should add sequencing around this.