Belle II Software development
LogModRealm Class Reference

Class to modify the log level dependent on the execution realm. More...

#include <LogVariableStream.h>

Public Member Functions

 LogModRealm (Belle2::LogConfig::ELogRealm realm, Belle2::LogConfig::ELogLevel logLevel)
 Constructor of a realm dependent modification of the log level.
 
Belle2::LogConfig::ELogRealm getRealm () const
 Returns the realm.
 
Belle2::LogConfig::ELogLevel getLogLevel () const
 Returns the log level.
 

Private Attributes

Belle2::LogConfig::ELogRealm m_realm
 Realm for the conditional log level.
 
Belle2::LogConfig::ELogLevel m_logLevel
 Realm dependent log level.
 

Detailed Description

Class to modify the log level dependent on the execution realm.

Definition at line 76 of file LogVariableStream.h.

Constructor & Destructor Documentation

◆ LogModRealm()

Constructor of a realm dependent modification of the log level.

Parameters
realmexecution realm
logLevelrealm dependent log level.

Definition at line 83 of file LogVariableStream.h.

83 :
84 m_realm(realm),
85 m_logLevel(logLevel)
86 {
87 }
Belle2::LogConfig::ELogRealm m_realm
Realm for the conditional log level.
Belle2::LogConfig::ELogLevel m_logLevel
Realm dependent log level.

Member Function Documentation

◆ getLogLevel()

Belle2::LogConfig::ELogLevel getLogLevel ( ) const
inline

Returns the log level.

Definition at line 100 of file LogVariableStream.h.

101 {
102 return m_logLevel;
103 }

◆ getRealm()

Belle2::LogConfig::ELogRealm getRealm ( ) const
inline

Returns the realm.

Definition at line 92 of file LogVariableStream.h.

93 {
94 return m_realm;
95 }

Member Data Documentation

◆ m_logLevel

Belle2::LogConfig::ELogLevel m_logLevel
private

Realm dependent log level.

Definition at line 110 of file LogVariableStream.h.

◆ m_realm

Realm for the conditional log level.

Definition at line 107 of file LogVariableStream.h.


The documentation for this class was generated from the following file: