summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-07 23:50:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-08 00:01:59 +0000
commita13352cfaf4b5d19196151e362851b1516e6af15 (patch)
tree652a68e8f29a99c51b8fecbb7814f34d01682a52 /bitbake
parentb7eb3243267c1aae82c9494aca1fff4c4a30d82f (diff)
downloadpoky-a13352cfaf4b5d19196151e362851b1516e6af15.tar.gz
bitbake/msg.py: Add named definitions for all logging levels
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/msg.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 13ee569e9a..00dc139c88 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -33,17 +33,22 @@ import bb.event
33class BBLogFormatter(logging.Formatter): 33class BBLogFormatter(logging.Formatter):
34 """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" 34 """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is"""
35 35
36 DEBUG = logging.DEBUG
36 VERBOSE = 19 37 VERBOSE = 19
38 NOTE = logging.INFO
37 PLAIN = 21 39 PLAIN = 21
40 ERROR = logging.ERROR
41 WARNING = logging.WARNING
42 CRITICAL = logging.CRITICAL
43
38 levelnames = { 44 levelnames = {
45 DEBUG : 'DEBUG',
39 PLAIN : '', 46 PLAIN : '',
47 NOTE : 'NOTE',
40 VERBOSE: 'NOTE', 48 VERBOSE: 'NOTE',
41 49 WARNING : 'WARNING',
42 logging.DEBUG : 'DEBUG', 50 ERROR : 'ERROR',
43 logging.INFO : 'NOTE', 51 CRITICAL: 'ERROR',
44 logging.WARNING : 'WARNING',
45 logging.ERROR : 'ERROR',
46 logging.CRITICAL: 'ERROR',
47 } 52 }
48 53
49 def getLevelName(self, levelno): 54 def getLevelName(self, levelno):