Opm::MessageLimiter Class Reference Handles limiting the number of messages with the same tag. More...
Detailed DescriptionHandles limiting the number of messages with the same tag. Member Enumeration Documentation◆ anonymous enum◆ Response
Used for handleMessageLimits() return type (see that function).
Constructor & Destructor Documentation◆ MessageLimiter() [1/3]
Default constructor, no limit to the number of messages. ◆ MessageLimiter() [2/3]
Construct with given limit to number of messages with the same tag. Negative limits (including NoLimit) are interpreted as NoLimit, but the default constructor is the preferred way to obtain that behaviour. References Opm::Log::MessageType::Bug, Opm::Log::MessageType::Debug, Opm::Log::MessageType::Error, Opm::Log::MessageType::Info, NoLimit, Opm::Log::MessageType::Note, Opm::Log::MessageType::Problem, and Opm::Log::MessageType::Warning. ◆ MessageLimiter() [3/3]
Member Function Documentation◆ categoryMessageCounts()
The category message counts. ◆ categoryMessageLimits()
The category message limits. ◆ handleMessageLimits()
If (tag count == tag limit + 1) for the passed tag, respond JustOverTagLimit. If (tag count > tag limit + 1), respond OverTagLimit. If a tag is empty, there is no tag message limit or for that tag (tag count <= tag limit), consider the category limits: If (category count == category limit + 1) for the passed messageMask, respond JustOverCategoryLimit. If (category count > category limit + 1), respond OverCategoryLimit. If (category count <= category limit), or there is no limit for that category, respond PrintMessage. References count, NoLimit, and PrintMessage. ◆ tagMessageLimit()
The tag message limit (same for all tags). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||