The Gaudi Framework
master (3de0aae8)
Toggle main menu visibility
Loading...
Searching...
No Matches
Constants.py
Go to the documentation of this file.
1
13
"""Useful/conventional constants."""
14
15
from
enum
import
IntEnum, unique
16
17
__all__ = [
18
"MessageLevel"
,
19
"NIL"
,
20
"ALL"
,
21
"VERBOSE"
,
22
"DEBUG"
,
23
"INFO"
,
24
"WARNING"
,
25
"ERROR"
,
26
"FATAL"
,
27
"ALWAYS"
,
28
"TRUE"
,
29
"FALSE"
,
30
]
31
32
33
@unique
34
class
MessageLevel
(IntEnum):
35
"""Message severity and output-threshold levels matching ``MSG::Level``."""
36
37
NIL = 0
38
VERBOSE = 1
39
DEBUG = 2
40
INFO = 3
41
WARNING = 4
42
ERROR = 5
43
FATAL = 6
44
ALWAYS = 7
45
46
47
# message levels -----------------------------------------------------------
48
NIL = MessageLevel.NIL.value
49
ALL = NIL
50
VERBOSE = MessageLevel.VERBOSE.value
51
DEBUG = MessageLevel.DEBUG.value
52
INFO = MessageLevel.INFO.value
53
WARNING = MessageLevel.WARNING.value
54
ERROR = MessageLevel.ERROR.value
55
FATAL = MessageLevel.FATAL.value
56
ALWAYS = MessageLevel.ALWAYS.value
57
58
# for job options legacy (TODO: get rid of these!) -------------------------
59
TRUE =
True
60
FALSE =
False
61
62
# message to notify folks that they really have to fix their codes:
63
error_explanation =
"""
64
==> After this line, a hack will be executed, attempting to rectify the
65
==> problem just reported. Since this hack may fail, and since it is a
66
==> rather temporary measure hack, this is an ERROR, not a WARNING."""
GaudiKernel.Constants.MessageLevel
Definition
Constants.py:34
GaudiKernel
python
GaudiKernel
Constants.py
Generated on
for The Gaudi Framework by
1.17.0