1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2010 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Standard and custom log levels from the standard logging package.
Custom log levels are registered in lp_sitecustomize.py.
"""
__metaclass__ = type
__all__ = [
'CRITICAL',
'DEBUG',
'DEBUG1',
'DEBUG2',
'DEBUG3',
'DEBUG4',
'DEBUG5',
'DEBUG6',
'DEBUG7',
'DEBUG8',
'DEBUG9',
'ERROR',
'FATAL',
'INFO',
'WARNING',
]
import logging
# Reexport standard log levels.
DEBUG = logging.DEBUG
INFO = logging.INFO
WARNING = logging.WARNING
ERROR = logging.ERROR
CRITICAL = logging.CRITICAL
FATAL = logging.FATAL
# Custom log levels.
DEBUG1 = DEBUG
DEBUG2 = DEBUG - 1
DEBUG3 = DEBUG - 2
DEBUG4 = DEBUG - 3
DEBUG5 = DEBUG - 4
DEBUG6 = DEBUG - 5
DEBUG7 = DEBUG - 6
DEBUG8 = DEBUG - 7
DEBUG9 = DEBUG - 8
|