From 9b22138a9b857e46206a988df0c40ce8ffe02718 Mon Sep 17 00:00:00 2001 From: MinRK Date: Fri, 3 May 2013 17:04:32 -0700 Subject: [PATCH] use highlevel in notebook log format datefmt no longer necessary --- IPython/frontend/html/notebook/notebookapp.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index c7d04f92b..344fd3c26 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -324,7 +324,7 @@ class NotebookApp(BaseIPythonApplication): def _log_format_default(self): """override default log format to include time""" - return u"%(asctime)s.%(msecs).03d [%(name)s] %(message)s" + return u"%(asctime)s.%(msecs).03d [%(name)s]%(highlevel)s %(message)s" # create requested profiles by default, if they don't exist: auto_create = Bool(True) @@ -538,10 +538,6 @@ class NotebookApp(BaseIPythonApplication): # and all of its ancenstors until propagate is set to False. self.log.propagate = False - # set the date format - formatter = logging.Formatter(self.log_format, datefmt="%Y-%m-%d %H:%M:%S") - self.log.handlers[0].setFormatter(formatter) - # hook up tornado 3's loggers to our app handlers for name in ('access', 'application', 'general'): logging.getLogger('tornado.%s' % name).handlers = self.log.handlers