#ifndef __XIOS_LOG_HPP__ #define __XIOS_LOG_HPP__ #include #include #include namespace xios { using namespace std ; class CLog : public ostream { public : CLog(const string& name_) : ostream(cout.rdbuf()),level(0),name(name_), strBuf_(cout.rdbuf()) {} CLog& operator()(int l) { if (l<=level) { // rdbuf(cout.rdbuf()) ; rdbuf(strBuf_); *this<<"-> "<