|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/Bootstrap.h"
7 #include "GaudiKernel/IMessageSvc.h"
8 #include "GaudiKernel/ISvcLocator.h"
9 #include "GaudiKernel/ServiceHandle.h"
36 std::cerr <<
"Athena::getMessageSvc: WARNING MessageSvc not found, will use std::cout" << std::endl;
48 if (ims)
return ims->outputLevel(
source);
49 else return MSG::INFO;
~IMessageSvcHolder()
releases the IMessageSvc
get a IMessageSvc* on 1st use (if not set) and release it on ~
IMessageSvcHolder & operator=(const IMessageSvcHolder &)
singleton-like access to IMessageSvc via open function and helper
std::atomic< bool > getMessageSvcQuiet
Set this to force off the warning messages from getMessageSvc (in unit tests, for example).
int outputLevel(const IMessageSvc *ims, const std::string &source)
IMessageSvc * getMessageSvc(bool quiet=false)
IMessageSvc * get()
upon first access sets m_ims as needed
msgSvc
Provide convenience handles for various services.
Some weak symbol referencing magic...
void setOutputLevel(IMessageSvc *ims, const std::string &source, int level)
IMessageSvcHolder()
will take the IMessageSvc* lazily from getMessageSvc() in get() Slow, but useful for classes without ...
#define ATLAS_THREAD_SAFE
Define macros for attributes used to control the static checker.
void reportMessage(IMessageSvc *ims, const std::string &source, int type, const std::string &message)
Wrappers for some of the IMessageSvc methods These can be used from libraries without explicit Gaudi ...