Show More
@@ -49,7 +49,7 b' if version_info < (3,1,0):' | |||||
49 |
|
49 | |||
50 | from tornado import httpserver |
|
50 | from tornado import httpserver | |
51 | from tornado import web |
|
51 | from tornado import web | |
52 | from tornado.log import LogFormatter |
|
52 | from tornado.log import LogFormatter, app_log, access_log, gen_log | |
53 |
|
53 | |||
54 | from IPython.html import DEFAULT_STATIC_FILES_PATH |
|
54 | from IPython.html import DEFAULT_STATIC_FILES_PATH | |
55 | from .base.handlers import Template404 |
|
55 | from .base.handlers import Template404 | |
@@ -691,6 +691,9 b' class NotebookApp(BaseIPythonApplication):' | |||||
691 | # and all of its ancenstors until propagate is set to False. |
|
691 | # and all of its ancenstors until propagate is set to False. | |
692 | self.log.propagate = False |
|
692 | self.log.propagate = False | |
693 |
|
693 | |||
|
694 | for log in app_log, access_log, gen_log: | |||
|
695 | # consistent log output name (NotebookApp instead of tornado.access, etc.) | |||
|
696 | log.name = self.log.name | |||
694 | # hook up tornado 3's loggers to our app handlers |
|
697 | # hook up tornado 3's loggers to our app handlers | |
695 | logger = logging.getLogger('tornado') |
|
698 | logger = logging.getLogger('tornado') | |
696 | logger.propagate = True |
|
699 | logger.propagate = True |
General Comments 0
You need to be logged in to leave comments.
Login now