##// END OF EJS Templates
Add support for (manually) activating logging, for now....
Fernando Perez -
Show More
@@ -44,6 +44,21 b' from zmqshell import ZMQInteractiveShell'
44 # Module-level logger
44 # Module-level logger
45 logger = logging.getLogger(__name__)
45 logger = logging.getLogger(__name__)
46
46
47 # FIXME: this needs to be done more cleanly later, once we have proper
48 # configuration support. This is a library, so it shouldn't set a stream
49 # handler, see:
50 # http://docs.python.org/library/logging.html#configuring-logging-for-a-library
51 # But this lets us at least do developer debugging for now by manually turning
52 # it on/off. And once we have full config support, the client entry points
53 # will select their logging handlers, as well as passing to this library the
54 # logging level.
55
56 if 0: # dbg - set to 1 to actually see the messages.
57 logger.addHandler(logging.StreamHandler())
58 logger.setLevel(logging.DEBUG)
59
60 # /FIXME
61
47 #-----------------------------------------------------------------------------
62 #-----------------------------------------------------------------------------
48 # Main kernel class
63 # Main kernel class
49 #-----------------------------------------------------------------------------
64 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now