Go to the documentation of this file.
11 #ifndef GAUDIKERNEL_IMESSAGESVC_H
12 #define GAUDIKERNEL_IMESSAGESVC_H
170 #endif // GAUDIKERNEL_IMESSAGESVC_H
Print levels enumeration.
virtual std::string getLogColor(int logLevel) const =0
Get the color codes for various log levels.
virtual void setOutputLevel(int new_level)=0
Set new global output level threshold.
virtual std::ostream * defaultStream() const =0
Get the default stream.
virtual void eraseStream(int type, std::ostream *stream)=0
Delete a single stream for a given message type (severity level)
virtual bool useColor() const =0
Show whether colors are used.
virtual void reportMessage(const Message &msg, int outputLevel)=0
Report a message by sending a Message object to the message service.
virtual int outputLevel() const =0
Retrieve the current output level threshold.
virtual void eraseStream(std::ostream *stream)=0
Delete all occurrences of a stream.
virtual void eraseMessage(const StatusCode &code, const Message &message)=0
Erase a given message associated to a given status code.
DeclareInterfaceID(IMessageSvc, 2, 0)
InterfaceID.
virtual void insertMessage(const StatusCode &code, Message message)=0
Insert a message to be sent for a given status code into the error code repository.
virtual void eraseStream(int message_type)=0
Delete all the streams for a given message type (severity level).
virtual int outputLevel(std::string_view source) const =0
Retrieve the current output level threshold for a given message source.
virtual void insertStream(int type, std::string name, std::ostream *stream)=0
Add a new stream for a message type (severity level).
virtual void reportMessage(std::string source, int type, std::string message)=0
Report a message by specifying the source, severity level and text.
virtual void eraseStream()=0
Delete all the streams.
virtual void eraseMessage(const StatusCode &code)=0
Erase message associated to a given status code.
virtual void reportMessage(const Message &message)=0
Report a message by sending a Message object to the message service.
DeclareInterfaceID(IInactiveMessageCounter, 2, 0)
InterfaceID.
virtual void setOutputLevel(std::string_view source, int new_level)=0
Set new output level threshold for a given message source.
virtual int messageCount(MSG::Level level) const =0
Get the number of messages issued at a particular level.
virtual void setDefaultStream(std::ostream *stream)=0
Set the default stream.
virtual void reportMessage(const StatusCode &code, std::string_view source="")=0
Report an error to the message service.
virtual void eraseMessage()=0
Erase all messages associated to all status codes.
virtual void incrInactiveCount(MSG::Level level, std::string_view src)=0
Increment deactivated message count.