diff --git a/dune/xt/common/timedlogging.hh b/dune/xt/common/timedlogging.hh index bfcec7cf1b2c5dea90b9df681e1be47ce20a78be..f4f0cf5d8bd4dc7dd033c7c665cb82773da66ea7 100644 --- a/dune/xt/common/timedlogging.hh +++ b/dune/xt/common/timedlogging.hh @@ -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