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>
66 AthMessaging (IMessageSvc* msgSvc,
const std::string& name);
92 MsgStream&
msg()
const;
99 msg (
const MSG::Level lvl)
const;
132 mutable boost::thread_specific_ptr<MsgStream>
m_msg_tls;
135 mutable std::atomic<IMessageSvc*>
m_imsg{
nullptr };
138 mutable std::atomic<MSG::Level>
m_lvl{ MSG::NIL };
172 ms->setLevel (
m_lvl);
179{
return msg() << lvl; }
Define macros for attributes used to control the static checker.
AthMessaging & operator=(const AthMessaging &rhs)
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
std::atomic_flag m_initialized ATLAS_THREAD_SAFE
Messaging initialized (initMessaging)
void setLevel(MSG::Level lvl)
Change the current logging level.
AthMessaging(const AthMessaging &rhs)
std::string m_nm
Message source name.
AthMessaging()
Default constructor:
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
virtual ~AthMessaging()
Destructor:
MsgStream & msg() const
The standard message stream.
std::atomic< MSG::Level > m_lvl
Current logging level.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
void initMessaging() const
Initialize our message level and MessageSvc.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.