Belle II Software development
LogVariableStream.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include <framework/logging/LogVariableStream.h>
10#include <framework/core/Environment.h>
11
13{
14 if (var.getRealm() == Belle2::Environment::Instance().getRealm()) {
15 m_logLevelOverride = var.getLogLevel();
16 }
17 return *this;
18}
static Environment & Instance()
Static method to get a reference to the Environment instance.
Definition: Environment.cc:28
LogConfig::ELogRealm getRealm() const
Get the basf2 execution realm.
Definition: Environment.h:211
Class to modify the log level dependent on the execution realm.
Specialized implementation of an ostream-like class where the << operator can be used to insert value...
Belle2::LogConfig::ELogLevel m_logLevelOverride
Adjusted log level.
LogVariableStream & operator<<(__basic_ostream_type &(*__pf)(__basic_ostream_type &))
operator override for ostream modifier functions like std::endl who are directly applied to the under...