My Project
|
Public Member Functions | |
size_t | numMessages (int64_t messageType) const |
EclipsePRTLog (const std::string &logFile, int64_t messageMask, bool append, bool print_summary) | |
Construct a logger to the <MODLE>.PRT file. | |
EclipsePRTLog (std::ostream &os, int64_t messageMask, bool print_summary) | |
Construct a logger to the <MODLE>.PRT file. | |
StreamLog (const std::string &logFile, int64_t messageMask, bool append=false) | |
StreamLog (std::ostream &os, int64_t messageMask) | |
![]() | |
StreamLog (const std::string &logFile, int64_t messageMask, bool append=false) | |
StreamLog (std::ostream &os, int64_t messageMask) | |
![]() | |
LogBackend (int64_t mask) | |
Construct with given message mask. | |
virtual | ~LogBackend () |
Virtual destructor to enable inheritance. | |
void | setMessageFormatter (std::shared_ptr< MessageFormatterInterface > formatter) |
Configure how formatMessage() will modify message strings. | |
void | setMessageLimiter (std::shared_ptr< MessageLimiter > limiter) |
Configure how message tags will be used to limit messages. | |
void | addMessage (int64_t messageFlag, const std::string &message) |
Add a message to the backend if accepted by the message limiter. | |
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. | |
int64_t | getMask () const |
The message mask types are specified in the Opm::Log::MessageType namespace, in file LogUtils.hpp. | |
Protected Member Functions | |
void | addMessageUnconditionally (int64_t messageType, const std::string &message) override |
This is the method subclasses should override. | |
![]() | |
void | addMessageUnconditionally (int64_t messageType, const std::string &message) override |
This is the method subclasses should override. | |
![]() | |
std::string | formatMessage (int64_t messageFlag, const std::string &message) |
Return decorated version of message depending on configureDecoration() arguments. | |
Opm::EclipsePRTLog::EclipsePRTLog | ( | const std::string & | logFile, |
int64_t | messageMask, | ||
bool | append, | ||
bool | print_summary | ||
) |
Construct a logger to the <MODLE>.PRT file.
logFile | The name of the logfile to use. |
messageMask | ???? |
append | If true then we append messages to the file. Otherwise a new file is created. |
print_summary | If true print a summary to the PRT file. |
Opm::EclipsePRTLog::EclipsePRTLog | ( | std::ostream & | os, |
int64_t | messageMask, | ||
bool | print_summary | ||
) |
Construct a logger to the <MODLE>.PRT file.
logFile | The name of the logfile to use. |
messageMask | ???? |
append | If true then we append messages to the file. Otherwise a new file is created. |
print_summary | If true print a summary to the PRT file. |
|
overrideprotectedvirtual |
This is the method subclasses should override.
Typically a subclass may filter, change, and output messages based on configuration and the messageFlag.
Implements Opm::LogBackend.