logger: added support for multiple streambuf.