|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ATHENABASECOMPS_ATHMESSAGING_H
12 #define ATHENABASECOMPS_ATHMESSAGING_H 1
20 #include "GaudiKernel/IMessageSvc.h"
21 #include "GaudiKernel/MsgStream.h"
22 #include "Gaudi/Property.h"
26 #include <boost/thread/tss.hpp>
92 MsgStream&
msg()
const;
132 mutable boost::thread_specific_ptr<MsgStream>
m_msg_tls;
135 mutable std::atomic<IMessageSvc*>
m_imsg{
nullptr };
180 {
return msg() << lvl; }
183 #endif //> !ATHENABASECOMPS_ATHMESSAGING_H
std::atomic< MSG::Level > m_lvl
Current logging level.
virtual ~AthMessaging()
Destructor:
AthMessaging(const AthMessaging &rhs)
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic_flag m_initialized ATLAS_THREAD_SAFE
Messaging initialized (initMessaging)
void setLevel(MSG::Level lvl)
Change the current logging level.
AthMessaging()
Default constructor:
bool msgLvl(const MSG::Level lvl) const
Test the output level.
msgSvc
Provide convenience handles for various services.
Class to provide easy MsgStream access and capabilities.
AthMessaging & operator=(const AthMessaging &rhs)
MsgStream & msg() const
The standard message stream.
std::string m_nm
Message source name.
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Define macros for attributes used to control the static checker.