Go to the documentation of this file.
76 float deactivationDurationSec,
77 const std::string& identifier,
82 std::unique_lock lock(*spamFilter->mutex);
83 spamFilter->durationSec = deactivationDurationSec;
84 spamFilter->identifier = identifier;
86 if (spamFilter->filterMap->count(identifier) == 0)
88 (*spamFilter->filterMap)[identifier].clear();
100 const std::string& identifier,
101 bool deactivate)
const
119 ->setFunction(
function)
143 loghelper(
const char* file,
int line,
const char*
function)
158 deactivateSpam(
float deactivationDurationSec,
const std::string& identifier,
bool deactivate)
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)