A small of upgrades to C++ streams to make them more suitable forlogging