summaryrefslogtreecommitdiff
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)
downloadopenembedded-core-a13352cfaf4b5d19196151e362851b1516e6af15.tar.gz
openembedded-core-a13352cfaf4b5d19196151e362851b1516e6af15.tar.bz2
openembedded-core-a13352cfaf4b5d19196151e362851b1516e6af15.zip
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
class BBLogFormatter(logging.Formatter):
"""Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is"""
+ DEBUG = logging.DEBUG
VERBOSE = 19
+ NOTE = logging.INFO
PLAIN = 21
+ ERROR = logging.ERROR
+ WARNING = logging.WARNING
+ CRITICAL = logging.CRITICAL
+
levelnames = {
+ DEBUG : 'DEBUG',
PLAIN : '',
+ NOTE : 'NOTE',
VERBOSE: 'NOTE',
-
- logging.DEBUG : 'DEBUG',
- logging.INFO : 'NOTE',
- logging.WARNING : 'WARNING',
- logging.ERROR : 'ERROR',
- logging.CRITICAL: 'ERROR',
+ WARNING : 'WARNING',
+ ERROR : 'ERROR',
+ CRITICAL: 'ERROR',
}
def getLevelName(self, levelno):