![]() |
The Gaudi Framework
v26r4
|
#include <src/MessageSvc/MessageSvc.h>


Classes | |
| struct | MsgAry |
| Private helper class to keep the count of messages of a type (MSG::LEVEL). More... | |
Public Types | |
| typedef std::pair< std::string, std::ostream * > | NamedStream |
| typedef std::multimap< int, NamedStream > | StreamMap |
| typedef std::multimap< StatusCode, Message > | MessageMap |
| typedef std::map< std::string, int > | ThresholdMap |
Public Types inherited from extends< BASE, Interfaces > | |
| typedef extends | base_class |
| Typedef to this class. More... | |
| typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
| Typedef to the base of this class. More... | |
| typedef extends | base_class |
| Typedef to this class. More... | |
| typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
| Typedef to the base of this class. More... | |
Public Types inherited from extend_interfaces< Interfaces...> | |
| using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
| take union of the ext_iids of all Interfaces... More... | |
| using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
| take union of the ext_iids of all Interfaces... More... | |
Public Member Functions | |
| MessageSvc (const std::string &name, ISvcLocator *svcloc) | |
| ~MessageSvc () override=default | |
| StatusCode | reinitialize () override |
| Reinitialize Service. More... | |
| StatusCode | initialize () override |
| Initialize Service. More... | |
| StatusCode | finalize () override |
| Finalize Service. More... | |
| void | reportMessage (const Message &message) override |
| void | reportMessage (const Message &msg, int outputLevel) override |
| void | reportMessage (const StatusCode &code, const std::string &source="") override |
| void | reportMessage (const char *source, int type, const char *message) override |
| void | reportMessage (const std::string &source, int type, const std::string &message) override |
| void | insertMessage (const StatusCode &code, const Message &message) override |
| void | eraseMessage () override |
| void | eraseMessage (const StatusCode &code) override |
| void | eraseMessage (const StatusCode &code, const Message &message) override |
| void | insertStream (int message_type, const std::string &name, std::ostream *stream) override |
| void | eraseStream () override |
| void | eraseStream (int message_type) override |
| void | eraseStream (int message_type, std::ostream *stream) override |
| void | eraseStream (std::ostream *stream) override |
| std::ostream * | defaultStream () const |
| void | setDefaultStream (std::ostream *stream) override |
| int | outputLevel () const override |
| int | outputLevel (const std::string &source) const override |
| void | setOutputLevel (int new_level) override |
| void | setOutputLevel (const std::string &source, int new_level) override |
| bool | useColor () const override |
| std::string | getLogColor (int logLevel) const override |
| int | messageCount (MSG::Level logLevel) const override |
| void | incrInactiveCount (MSG::Level level, const std::string &src) override |
Public Member Functions inherited from extends< BASE, Interfaces > | |
| void * | i_cast (const InterfaceID &tid) const override |
| Implementation of IInterface::i_cast. More... | |
| StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
| Implementation of IInterface::queryInterface. More... | |
| std::vector< std::string > | getInterfaceNames () const override |
| Implementation of IInterface::getInterfaceNames. More... | |
| ~extends () override=default | |
| Virtual destructor. More... | |
| void * | i_cast (const InterfaceID &tid) const override |
| Implementation of IInterface::i_cast. More... | |
| StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
| Implementation of IInterface::queryInterface. More... | |
| std::vector< std::string > | getInterfaceNames () const override |
| Implementation of IInterface::getInterfaceNames. More... | |
| ~extends () override=default | |
| Virtual destructor. More... | |
Public Member Functions inherited from extend_interfaces< Interfaces...> | |
| ~extend_interfaces () override=default | |
| Virtual destructor. More... | |
| ~extend_interfaces () override=default | |
| Virtual destructor. More... | |
Private Types | |
| typedef std::map< std::string, MSG::Color > | ColorMap |
Private Member Functions | |
| std::string | colTrans (std::string, int) |
| void | initColors (Property &prop) |
| void | setupColors (Property &prop) |
| void | setupLimits (Property &prop) |
| void | setupThreshold (Property &prop) |
| void | setupInactCount (Property &prop) |
| void | setupLogStreams () |
| void | tee (const std::string &sourceName, const std::string &logFileName, const std::set< std::string > &declaredOutFileNames) |
Private Attributes | |
| std::ostream * | m_defaultStream |
| Pointer to the output stream. More... | |
| Message | m_defaultMessage |
| Default Message. More... | |
| StreamMap | m_streamMap |
| Stream map. More... | |
| MessageMap | m_messageMap |
| Message map. More... | |
| ThresholdMap | m_thresholdMap |
| Output level threshold map. More... | |
| std::string | m_defaultFormat |
| Default format for the messages. More... | |
| std::string | m_defaultTimeFormat |
| Default format for timestamps in the messages. More... | |
| StringArrayProperty | m_thresholdProp [MSG::NUM_LEVELS] |
| Properties controlling. More... | |
| BooleanProperty | m_color |
| BooleanProperty | m_stats |
| UnsignedIntegerProperty | m_statLevel |
| StringArrayProperty | m_logColors [MSG::NUM_LEVELS] |
| IntegerProperty | m_msgLimit [MSG::NUM_LEVELS] |
| std::string | m_logColorCodes [MSG::NUM_LEVELS] |
| std::map< std::string, MsgAry > | m_sourceMap |
| std::map< std::string, MsgAry > | m_inactiveMap |
| BooleanProperty | m_suppress |
| BooleanProperty | m_inactCount |
| ColorMap | m_colMap |
| std::array< int, MSG::NUM_LEVELS > | m_msgCount |
| std::map< std::string, std::string > | m_loggedStreamsName |
| std::map< std::string, std::shared_ptr< std::ostream > > | m_loggedStreams |
| std::recursive_mutex | m_reportMutex |
| Mutex to synchronize multiple threads printing. More... | |
| std::recursive_mutex | m_messageMapMutex |
| Mutex to synchronize multiple access to m_messageMap. More... | |
| std::recursive_mutex | m_thresholdMapMutex |
| Mutex to synchronize multiple access to m_thresholdMap (. More... | |
Definition at line 30 of file MessageSvc.h.
|
private |
Definition at line 157 of file MessageSvc.h.
| typedef std::multimap< StatusCode, Message > MessageSvc::MessageMap |
Definition at line 34 of file MessageSvc.h.
| typedef std::pair< std::string, std::ostream* > MessageSvc::NamedStream |
Definition at line 32 of file MessageSvc.h.
| typedef std::multimap< int, NamedStream > MessageSvc::StreamMap |
Definition at line 33 of file MessageSvc.h.
| typedef std::map< std::string, int > MessageSvc::ThresholdMap |
Definition at line 35 of file MessageSvc.h.
| MessageSvc::MessageSvc | ( | const std::string & | name, |
| ISvcLocator * | svcloc | ||
| ) |
Definition at line 59 of file MessageSvc.cpp.
|
overridedefault |
|
private |
Definition at line 436 of file MessageSvc.cpp.
|
inline |
Definition at line 92 of file MessageSvc.h.
|
override |
Definition at line 653 of file MessageSvc.cpp.
|
override |
Definition at line 666 of file MessageSvc.cpp.
|
override |
Definition at line 679 of file MessageSvc.cpp.
|
override |
Definition at line 587 of file MessageSvc.cpp.
|
override |
Definition at line 599 of file MessageSvc.cpp.
|
override |
Definition at line 611 of file MessageSvc.cpp.
|
override |
Definition at line 626 of file MessageSvc.cpp.
|
override |
Finalize Service.
Definition at line 323 of file MessageSvc.cpp.
|
override |
Definition at line 716 of file MessageSvc.cpp.
|
override |
Definition at line 730 of file MessageSvc.cpp.
|
private |
Definition at line 167 of file MessageSvc.cpp.
|
override |
Initialize Service.
Definition at line 121 of file MessageSvc.cpp.
|
override |
Definition at line 640 of file MessageSvc.cpp.
|
override |
Definition at line 573 of file MessageSvc.cpp.
|
override |
Definition at line 722 of file MessageSvc.cpp.
|
override |
Definition at line 688 of file MessageSvc.cpp.
|
override |
Definition at line 694 of file MessageSvc.cpp.
|
override |
Reinitialize Service.
Definition at line 160 of file MessageSvc.cpp.
|
override |
Definition at line 510 of file MessageSvc.cpp.
|
override |
Definition at line 449 of file MessageSvc.cpp.
|
override |
Definition at line 545 of file MessageSvc.cpp.
|
override |
Definition at line 520 of file MessageSvc.cpp.
|
override |
Definition at line 532 of file MessageSvc.cpp.
|
inlineoverride |
Definition at line 97 of file MessageSvc.h.
|
override |
Definition at line 702 of file MessageSvc.cpp.
|
override |
Definition at line 708 of file MessageSvc.cpp.
|
private |
Definition at line 197 of file MessageSvc.cpp.
|
private |
Definition at line 311 of file MessageSvc.cpp.
|
private |
Definition at line 247 of file MessageSvc.cpp.
|
private |
Definition at line 737 of file MessageSvc.cpp.
|
private |
Definition at line 274 of file MessageSvc.cpp.
|
private |
Definition at line 756 of file MessageSvc.cpp.
|
inlineoverride |
Definition at line 115 of file MessageSvc.h.
|
private |
Definition at line 158 of file MessageSvc.h.
|
private |
Definition at line 137 of file MessageSvc.h.
|
private |
Default format for the messages.
Definition at line 134 of file MessageSvc.h.
|
private |
Default Message.
Definition at line 130 of file MessageSvc.h.
|
private |
Pointer to the output stream.
Definition at line 129 of file MessageSvc.h.
|
private |
Default format for timestamps in the messages.
Definition at line 135 of file MessageSvc.h.
|
private |
Definition at line 154 of file MessageSvc.h.
|
private |
Definition at line 153 of file MessageSvc.h.
|
private |
Definition at line 143 of file MessageSvc.h.
|
private |
Definition at line 140 of file MessageSvc.h.
|
private |
Definition at line 163 of file MessageSvc.h.
|
private |
Definition at line 162 of file MessageSvc.h.
|
private |
Message map.
Definition at line 132 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple access to m_messageMap.
Definition at line 180 of file MessageSvc.h.
|
private |
Definition at line 160 of file MessageSvc.h.
|
private |
Definition at line 141 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple threads printing.
Definition at line 177 of file MessageSvc.h.
|
private |
Definition at line 153 of file MessageSvc.h.
|
private |
Definition at line 139 of file MessageSvc.h.
|
private |
Definition at line 138 of file MessageSvc.h.
|
private |
Stream map.
Definition at line 131 of file MessageSvc.h.
|
private |
Definition at line 154 of file MessageSvc.h.
|
private |
Output level threshold map.
Definition at line 133 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple access to m_thresholdMap (.
Definition at line 184 of file MessageSvc.h.
|
private |
Properties controlling.
Definition at line 136 of file MessageSvc.h.