26 #define ERROR if(fLog)if(fLog->GetMaxOutPutLVL() >= 0) fLog->E() << "!!!ERROR!!! " << "[" << __FILE__ << ":" << __FUNCTION__ << "] " 27 #define WARNING if(fLog)if(fLog->GetMaxOutPutLVL() >= 1) fLog->W() << "!!WARNING!! " << "[" << __FILE__ << ":" << __FUNCTION__ << "] " 28 #define INFO if(fLog)if(fLog->GetMaxOutPutLVL() >= 2) fLog->I() << "!!!!INFO!!! " << "[" << __FILE__ << "] " 30 #define DBGL if(fLog)if(fLog->GetMaxOutPutLVL() >= 3) fLog->D() << __FILE__ << " : " << __LINE__ << " [" << __FUNCTION__ << "]" << endl; 31 #define DBGV(x) {if(fLog)if(fLog->GetMaxOutPutLVL() >= 3) fLog->D() << __FILE__ << " : " << __LINE__ << " [" << __FUNCTION__ << "]" << x << endl;} 79 LogType(ostream &Log) { fLog = &Log; fLog2 = 0; }
94 LogType &operator << (std::ostream& (*manip)(std::ostream &))
96 manip( *(this->fLog) );
98 manip( *(this->fLog2) );
106 *(this->fLog) << something;
108 *(this->fLog2) << something;
120 string fCLASSLoggerName;
127 #ifndef _CLASSLogger_ 128 #define _CLASSLogger_ 169 CLASSLogger(
string CLASSLoggerName =
"CLASS_OUTPUT.log",
int VerboseLvl = 0,
int OutputLvl = 1 );
205 ofstream fOutPutFile;
206 string fCLASSLoggerName;
Definition: CLASSBackEndDict.cxx:37
string GetCLASSLoggerName() const
return the CLASSLogger name
Definition: CLASSLogger.hxx:182
~LogType()
Normal Destructor.
Definition: CLASSLogger.hxx:82
LogType D()
Return the DEBUG Streamer.
Definition: CLASSLogger.hxx:189
string GetCLASSLoggerName() const
return the CLASSLogger name
Definition: CLASSLogger.hxx:92
void SetSecondOutput(ostream &log)
Definition: CLASSLogger.hxx:113
LogType(ostream &Log)
Normal Constructor.
Definition: CLASSLogger.hxx:79
int GetMaxOutPutLVL() const
Return File Output lvl.
Definition: CLASSLogger.hxx:183
Object to handle output messages.
Definition: CLASSLogger.hxx:144
handles output stream in CLASS
Definition: CLASSLogger.hxx:63
int GetVerboseLVL() const
Definition: CLASSLogger.hxx:184
LogType I()
Return the INFO Streamer.
Definition: CLASSLogger.hxx:188
LogType E()
Return the ERROR Streamer.
Definition: CLASSLogger.hxx:186
LogType W()
Return the WARNING Streamer.
Definition: CLASSLogger.hxx:187