ATLAS Offline Software
LogLevels.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * LogLevels.h
7  * Rivet_i
8  *
9  * Created by James Monk on 18/06/2008.
10  *
11  * Converts between the Gaudi Logging levels and the Rivet ones
12  *
13  */
14 
15 #ifndef RIVET_I_LOGLEVELS_H
16 #define RIVET_I_LOGLEVELS_H
17 
18 #include "Rivet/Tools/Logging.hh"
19 #include "GaudiKernel/IMessageSvc.h"
20 
22 
23  switch(gaudiLevel){
24  case MSG::NIL :
25  return Rivet::Log::ERROR;
26  break;
27 
28  case MSG::VERBOSE :
29  return Rivet::Log::TRACE;
30  break;
31 
32  case MSG::DEBUG :
33  return Rivet::Log::DEBUG;
34  break;
35 
36  case MSG::INFO :
37  return Rivet::Log::INFO;
38  break;
39 
40  case MSG::WARNING :
41  return Rivet::Log::WARN;
42  break;
43 
44  case MSG::ERROR :
45  return Rivet::Log::ERROR;
46  break;
47 
48  case MSG::FATAL :
49  return Rivet::Log::ERROR;
50  break;
51 
52  case MSG::ALWAYS :
53  return Rivet::Log::TRACE;
54  break;
55 
56  default:
57  return Rivet::Log::INFO;
58  }
59  return Rivet::Log::INFO;
60 }
61 
62 
63 #endif
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
python.Constants.ERROR
int ERROR
Definition: Control/AthenaCommon/python/Constants.py:18
rivetLevel
Rivet::Log::Level rivetLevel(MSG::Level gaudiLevel)
Definition: LogLevels.h:21
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
TrigConf::MSGTC::ALWAYS
@ ALWAYS
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:29
python.Constants.INFO
int INFO
Definition: Control/AthenaCommon/python/Constants.py:16
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