Add a buffer to the logging chan.

I'm pretty sure this is a perf bottleneck, Thus I am sorting this out.