ATLAS Offline Software
MsgLevel.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 
12 #ifndef ASGMESSAGING_MSGLEVEL_H
13 #define ASGMESSAGING_MSGLEVEL_H
14 
15 // System include(s):
16 #include <string>
17 
18 // Local include(s):
19 
20 // Pull in the definition from Gaudi in Athena:
21 #ifndef XAOD_STANDALONE
22 # include "GaudiKernel/IMessageSvc.h"
23 #endif
24 
25 // Not sure why this is needed...
26 #undef ERROR
27 
28 namespace MSG {
29 
30 #ifdef XAOD_STANDALONE
31 
33  enum Level {
34  NIL = 0,
35  VERBOSE,
36  DEBUG,
37  INFO,
38  WARNING,
39  ERROR,
40  FATAL,
41  ALWAYS,
43  }; // enum Level
44 
45 #endif // XAOD_STANDALONE
46 
48  const std::string& name( Level lvl );
49 
52  struct DummyStruct {};
53 
54 } // end namespace MSG
55 
56 #endif // ASGMESSAGING_MSGLEVEL_H
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
MSG::DummyStruct
This struct is here only to make the dictionary generation for types in the MSG namespace successful.
Definition: MsgLevel.h:52
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
TrigConf::MSGTC::ALWAYS
@ ALWAYS
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:29
MSG
Definition: MsgLevel.h:28
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
TrigConf::MSGTC::NUM_LEVELS
@ NUM_LEVELS
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:30
DEBUG
#define DEBUG
Definition: page_access.h:11
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
TrigConf::MSGTC::NIL
@ NIL
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:22