00001 00014 #ifndef GAUDIMESSAGES_H 00015 #define GAUDIMESSAGES_H 00016 00017 #include "GaudiKernel/MsgStream.h" 00018 00043 class GaudiMsgStreams { 00044 00045 MsgStream m_msgStream; 00046 00047 GaudiMsgStreams& operator=(const GaudiMsgStreams&); 00048 public: 00049 00050 GaudiMsgStreams(const std::string& streamName = ""); 00051 00052 MsgStream& log(MSG::Level level); 00053 00054 MsgStream& verbose(); 00055 MsgStream& debug(); 00056 MsgStream& info(); 00057 MsgStream& warning(); 00058 MsgStream& error(); 00059 MsgStream& fatal(); 00060 MsgStream& always(); 00061 00062 }; 00063 00089 00090 00091 class GaudiMessaging { 00092 00093 GaudiMsgStreams m_stream; 00094 00095 GaudiMessaging& operator=(const GaudiMessaging&); 00096 public: 00097 00098 GaudiMessaging(const std::string& streamName = ""); 00099 00100 void log(int, const std::string& msg); 00101 00102 void verbose(const std::string& msg); 00103 void debug(const std::string& msg); 00104 void info(const std::string& msg); 00105 void warning(const std::string& msg); 00106 void error(const std::string& msg); 00107 void fatal(const std::string& msg); 00108 void always(const std::string& msg); 00109 00110 }; 00111 00112 namespace GaudiMessagesTest { 00113 00114 void test_info(std::string msg); 00115 00116 } 00117 00118 00119 00120 #endif // GAUDIMESSAGES_H