22#ifndef OPM_LOGBACKEND_HPP
23#define OPM_LOGBACKEND_HPP
25#include <opm/common/OpmLog/MessageFormatter.hpp>
26#include <opm/common/OpmLog/MessageLimiter.hpp>
51 void addMessage(int64_t messageFlag,
const std::string& message);
55 const std::string& messageTag,
56 const std::string& message);
68 const std::string& message) = 0;
71 std::string
formatMessage(int64_t messageFlag,
const std::string& message);
76 bool includeMessage(int64_t messageFlag,
const std::string& messageTag);
79 std::shared_ptr<MessageFormatterInterface> m_formatter;
80 std::shared_ptr<MessageLimiter> m_limiter;
Abstract interface class for log backends.
Definition LogBackend.hpp:36
std::string formatMessage(int64_t messageFlag, const std::string &message)
Return decorated version of message depending on configureDecoration() arguments.
Definition LogBackend.cpp:88
int64_t getMask() const
The message mask types are specified in the Opm::Log::MessageType namespace, in file LogUtils....
Definition LogBackend.cpp:56
void setMessageFormatter(std::shared_ptr< MessageFormatterInterface > formatter)
Configure how formatMessage() will modify message strings.
Definition LogBackend.cpp:34
void setMessageLimiter(std::shared_ptr< MessageLimiter > limiter)
Configure how message tags will be used to limit messages.
Definition LogBackend.cpp:39
virtual ~LogBackend()
Virtual destructor to enable inheritance.
Definition LogBackend.cpp:30
void addMessage(int64_t messageFlag, const std::string &message)
Add a message to the backend if accepted by the message limiter.
Definition LogBackend.cpp:44
virtual void addMessageUnconditionally(int64_t messageFlag, const std::string &message)=0
This is the method subclasses should override.
void addTaggedMessage(int64_t messageFlag, const std::string &messageTag, const std::string &message)
Add a tagged message to the backend if accepted by the message limiter.
Definition LogBackend.cpp:50
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30