Go to the documentation of this file.
76 std::unique_lock lock(*spamFilter->mutex);
77 spamFilter->durationSec = deactivationDurationSec;
78 spamFilter->identifier = identifier;
80 if (spamFilter->filterMap->count(identifier) == 0)
82 (*spamFilter->filterMap)[identifier].clear();
MessageTypeT minimumLoggingLevel
LogSenderPtr loghelper(const char *file, int line, const char *function) const
Wrapper for the Log IceStorm topic with convenience methods for logging.
static MessageTypeT GetGlobalMinimumLoggingLevel()
SpamFilterDataPtr globalSpamFilter(new SpamFilterData())
SpamFilterDataPtr spamFilter
bool checkLogLevel(MessageTypeT level)
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
const LogSenderPtr & getLogSender() const
Retrieve log sender.
std::shared_ptr< SpamFilterData > SpamFilterDataPtr
void setLocalMinimumLoggingLevel(MessageTypeT level)
With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
std::string tagName(ConfigTag tag)
MessageTypeT getEffectiveLoggingLevel() const
std::shared_ptr< LogSender > LogSenderPtr
Typedef of std::shared_ptr for convenience.
bool checkLogLevel(MessageTypeT level) const
SpamFilterDataPtr deactivateSpam(float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
disables the logging for the current line for the given amount of seconds.
LogSenderPtr loghelper(const char *file, int line, const char *function)
void setTag(const LogTag &tag)
static LogSenderPtr createLogSender()
This file offers overloads of toIce() and fromIce() functions for STL container types.
static std::string levelToString(MessageTypeT type)