Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
AthMessaging.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // AthMessaging.cxx
6 // Implementation file for class AthMessaging
7 // Author: S.Binet<binet@cern.ch>, Frank Winklmeier
9 
12 
14  const std::string& name) :
15  m_nm(name), m_imsg(msgSvc)
16 {}
17 
18 
19 AthMessaging::AthMessaging (const std::string& name) :
20  m_nm(name)
21 {}
22 
23 
25 {}
26 
27 
29 {
30  m_lvl = lvl;
31 }
32 
33 
40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
AthMessaging::~AthMessaging
virtual ~AthMessaging()
Destructor:
Definition: AthMessaging.cxx:24
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
AthMessaging::setLevel
void setLevel(MSG::Level lvl)
Change the current logging level.
Definition: AthMessaging.cxx:28
AthMessaging::AthMessaging
AthMessaging()
Default constructor:
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
AthMessaging.h
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39