summaryrefslogtreecommitdiffstats
path: root/src/nbb.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/nbb.in')
-rw-r--r--src/nbb.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nbb.in b/src/nbb.in
index d4d2c62..ac3b00e 100644
--- a/src/nbb.in
+++ b/src/nbb.in
@@ -14,6 +14,19 @@ if sys.version_info < (2,4):
print "Fatal: This program requires Python 2.4 or later."
sys.exit(3)
+import logging # since python 2.3
+
+# funcName: Since python 2.5
+# format="%(filename)s:%(lineno)d:%(funcName)s:"
+logging.basicConfig(level = logging.DEBUG,
+ format = "%(levelname)s: %(message)s",
+ stream = sys.stderr)
+if False:
+ logging.debug("xxx debug")
+ logging.info("xxx info")
+ logging.warning("xxx warn")
+ logging.error("xxx error")
+
if __name__ == '__main__':
pythondir = "@pythondir@"
lib_found = False