![]() |
The Gaudi Framework
v27r0
|
#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 |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
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 override |
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 |
![]() | |
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... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Member Functions | |
virtual void | i_reportMessage (const Message &msg, int outputLevel) |
Internal implementation of reportMessage(const Message&,int) without lock. More... | |
virtual void | i_reportMessage (const StatusCode &code, const std::string &source) |
Internal implementation of reportMessage(const StatusCode&,const std::string&) without lock. 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 164 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 57 of file MessageSvc.cpp.
|
overridedefault |
|
private |
Definition at line 430 of file MessageSvc.cpp.
|
inlineoverride |
Definition at line 92 of file MessageSvc.h.
|
override |
Definition at line 654 of file MessageSvc.cpp.
|
override |
Definition at line 667 of file MessageSvc.cpp.
|
override |
Definition at line 680 of file MessageSvc.cpp.
|
override |
Definition at line 588 of file MessageSvc.cpp.
|
override |
Definition at line 600 of file MessageSvc.cpp.
|
override |
Definition at line 612 of file MessageSvc.cpp.
|
override |
Definition at line 627 of file MessageSvc.cpp.
|
override |
Finalize Service.
Definition at line 317 of file MessageSvc.cpp.
|
override |
Definition at line 717 of file MessageSvc.cpp.
|
protectedvirtual |
Internal implementation of reportMessage(const Message&,int) without lock.
Definition at line 447 of file MessageSvc.cpp.
|
protectedvirtual |
Internal implementation of reportMessage(const StatusCode&,const std::string&) without lock.
Definition at line 547 of file MessageSvc.cpp.
|
override |
Definition at line 731 of file MessageSvc.cpp.
|
private |
Definition at line 161 of file MessageSvc.cpp.
|
override |
Initialize Service.
Definition at line 119 of file MessageSvc.cpp.
|
override |
Definition at line 641 of file MessageSvc.cpp.
|
override |
Definition at line 574 of file MessageSvc.cpp.
|
override |
Definition at line 723 of file MessageSvc.cpp.
|
override |
Definition at line 689 of file MessageSvc.cpp.
|
override |
Definition at line 695 of file MessageSvc.cpp.
|
override |
Reinitialize Service.
Definition at line 154 of file MessageSvc.cpp.
|
override |
Definition at line 506 of file MessageSvc.cpp.
|
override |
Definition at line 442 of file MessageSvc.cpp.
|
override |
Definition at line 540 of file MessageSvc.cpp.
|
override |
Definition at line 516 of file MessageSvc.cpp.
|
override |
Definition at line 528 of file MessageSvc.cpp.
|
inlineoverride |
Definition at line 97 of file MessageSvc.h.
|
override |
Definition at line 703 of file MessageSvc.cpp.
|
override |
Definition at line 709 of file MessageSvc.cpp.
|
private |
Definition at line 191 of file MessageSvc.cpp.
|
private |
Definition at line 305 of file MessageSvc.cpp.
|
private |
Definition at line 241 of file MessageSvc.cpp.
|
private |
Definition at line 738 of file MessageSvc.cpp.
|
private |
Definition at line 268 of file MessageSvc.cpp.
|
private |
Definition at line 757 of file MessageSvc.cpp.
|
inlineoverride |
Definition at line 115 of file MessageSvc.h.
|
private |
Definition at line 165 of file MessageSvc.h.
|
private |
Definition at line 144 of file MessageSvc.h.
|
private |
Default format for the messages.
Definition at line 141 of file MessageSvc.h.
|
private |
Default Message.
Definition at line 137 of file MessageSvc.h.
|
private |
Pointer to the output stream.
Definition at line 136 of file MessageSvc.h.
|
private |
Default format for timestamps in the messages.
Definition at line 142 of file MessageSvc.h.
|
private |
Definition at line 161 of file MessageSvc.h.
|
private |
Definition at line 160 of file MessageSvc.h.
|
private |
Definition at line 150 of file MessageSvc.h.
|
private |
Definition at line 147 of file MessageSvc.h.
|
private |
Definition at line 170 of file MessageSvc.h.
|
private |
Definition at line 169 of file MessageSvc.h.
|
private |
Message map.
Definition at line 139 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple access to m_messageMap.
Definition at line 187 of file MessageSvc.h.
|
private |
Definition at line 167 of file MessageSvc.h.
|
private |
Definition at line 148 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple threads printing.
Definition at line 184 of file MessageSvc.h.
|
private |
Definition at line 160 of file MessageSvc.h.
|
private |
Definition at line 146 of file MessageSvc.h.
|
private |
Definition at line 145 of file MessageSvc.h.
|
private |
Stream map.
Definition at line 138 of file MessageSvc.h.
|
private |
Definition at line 161 of file MessageSvc.h.
|
private |
Output level threshold map.
Definition at line 140 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple access to m_thresholdMap (.
Definition at line 191 of file MessageSvc.h.
|
private |
Properties controlling.
Definition at line 143 of file MessageSvc.h.