boost::log::bind_output
// In header: <boost/log/utility/functional/bind_output.hpp> template<typename StreamT> binder1st< output_fun, StreamT & > bind_output(StreamT & strm);