Adding ability to log contents of buffers.