##// END OF EJS Templates
use highlevel in notebook log format...
MinRK -
Show More
@@ -324,7 +324,7 b' class NotebookApp(BaseIPythonApplication):'
324
324
325 def _log_format_default(self):
325 def _log_format_default(self):
326 """override default log format to include time"""
326 """override default log format to include time"""
327 return u"%(asctime)s.%(msecs).03d [%(name)s] %(message)s"
327 return u"%(asctime)s.%(msecs).03d [%(name)s]%(highlevel)s %(message)s"
328
328
329 # create requested profiles by default, if they don't exist:
329 # create requested profiles by default, if they don't exist:
330 auto_create = Bool(True)
330 auto_create = Bool(True)
@@ -538,10 +538,6 b' class NotebookApp(BaseIPythonApplication):'
538 # and all of its ancenstors until propagate is set to False.
538 # and all of its ancenstors until propagate is set to False.
539 self.log.propagate = False
539 self.log.propagate = False
540
540
541 # set the date format
542 formatter = logging.Formatter(self.log_format, datefmt="%Y-%m-%d %H:%M:%S")
543 self.log.handlers[0].setFormatter(formatter)
544
545 # hook up tornado 3's loggers to our app handlers
541 # hook up tornado 3's loggers to our app handlers
546 for name in ('access', 'application', 'general'):
542 for name in ('access', 'application', 'general'):
547 logging.getLogger('tornado.%s' % name).handlers = self.log.handlers
543 logging.getLogger('tornado.%s' % name).handlers = self.log.handlers
General Comments 0
You need to be logged in to leave comments. Login now