Show More
@@ -29,7 +29,7 b' import sys' | |||||
29 |
|
29 | |||
30 | from subprocess import Popen, PIPE |
|
30 | from subprocess import Popen, PIPE | |
31 |
|
31 | |||
32 | from IPython.config.application import catch_config_error |
|
32 | from IPython.config.application import catch_config_error, LevelFormatter | |
33 | from IPython.core import release |
|
33 | from IPython.core import release | |
34 | from IPython.core.crashhandler import CrashHandler |
|
34 | from IPython.core.crashhandler import CrashHandler | |
35 | from IPython.core.application import ( |
|
35 | from IPython.core.application import ( | |
@@ -105,7 +105,7 b' class BaseParallelApplication(BaseIPythonApplication):' | |||||
105 |
|
105 | |||
106 | def _log_format_default(self): |
|
106 | def _log_format_default(self): | |
107 | """override default log format to include time""" |
|
107 | """override default log format to include time""" | |
108 | return u"%(asctime)s.%(msecs).03d [%(name)s] %(message)s" |
|
108 | return u"%(asctime)s.%(msecs).03d [%(name)s]%(highlevel)s %(message)s" | |
109 |
|
109 | |||
110 | work_dir = Unicode(os.getcwdu(), config=True, |
|
110 | work_dir = Unicode(os.getcwdu(), config=True, | |
111 | help='Set the working dir for the process.' |
|
111 | help='Set the working dir for the process.' | |
@@ -191,8 +191,8 b' class BaseParallelApplication(BaseIPythonApplication):' | |||||
191 | else: |
|
191 | else: | |
192 | self._log_handler = self.log.handlers[0] |
|
192 | self._log_handler = self.log.handlers[0] | |
193 | # Add timestamps to log format: |
|
193 | # Add timestamps to log format: | |
194 |
self._log_formatter = l |
|
194 | self._log_formatter = LevelFormatter(self.log_format, | |
195 |
datefmt= |
|
195 | datefmt=self.log_datefmt) | |
196 | self._log_handler.setFormatter(self._log_formatter) |
|
196 | self._log_handler.setFormatter(self._log_formatter) | |
197 | # do not propagate log messages to root logger |
|
197 | # do not propagate log messages to root logger | |
198 | # ipcluster app will sometimes print duplicate messages during shutdown |
|
198 | # ipcluster app will sometimes print duplicate messages during shutdown |
General Comments 0
You need to be logged in to leave comments.
Login now