00001
00002 #ifndef TrigDecisionTool_Logger_h
00003 #define TrigDecisionTool_Logger_h
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include <string>
00016 #include "AsgTools/AsgToolsConf.h"
00017
00018 #ifdef ASGTOOL_STANDALONE
00019 #include "AsgTools/AsgMessaging.h"
00020 #endif
00021 #ifdef ASGTOOL_ATHENA
00022 #include "AthenaKernel/getMessageSvc.h"
00023 #include "AthenaBaseComps/AthMessaging.h"
00024 #endif
00025
00026 namespace Trig{
00027 class Logger {
00028 public:
00029 MsgStream& msg() const;
00030 MsgStream& msg(const MSG::Level lvl) const {return msg() << lvl;}
00031 bool msgLvl(const MSG::Level lvl) const {return Logger::staticStream->msgLvl(lvl);}
00032 #ifdef ASGTOOL_STANDALONE
00033 void setMessaging(asg::AsgMessaging* messaging){staticStream = messaging;}
00034 static asg::AsgMessaging* staticStream;
00035 #endif
00036 #ifdef ASGTOOL_ATHENA
00037 void setMessaging(AthMessaging* messaging){staticStream = messaging;}
00038 static AthMessaging* staticStream;
00039 #endif
00040 };
00041 }
00042
00043 #endif