Skip to content
Snippets Groups Projects
Commit 87e79da4 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[common.timedlogging] add enable_logging_like()

parent c299e09e
No related branches found
No related tags found
3 merge requests!41Fix compilation with icc, several other changes,!39Make functions copyable,!35dailywork-ftschindler
......@@ -165,6 +165,13 @@ public:
{
LOG_(debug) << logging_id << "operator=(this=" << this << ", source=" << &source << ")" << std::endl;
}
void enable_logging_like(const ThisType& other)
{
this->logger.info_enabled = this->logger.info_enabled || other.logger.info_enabled;
this->logger.debug_enabled = this->logger.debug_enabled || other.logger.debug_enabled;
this->logger.warn_enabled = this->logger.warn_enabled || other.logger.warn_enabled;
}
}; // class WithLogger
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment