Further improve logging

Unfortunately matching on { and } caused certain node errors to blow up as bosco sometimes logs stdout directly. I've made the formatting a little more intelligent to ensure that this doesn't happen.