diff --git a/IPython/config/application.py b/IPython/config/application.py index 32bde86..4a2923e 100644 --- a/IPython/config/application.py +++ b/IPython/config/application.py @@ -165,7 +165,7 @@ class Application(SingletonConfigurable): def _log_format_changed(self, name, old, new): """Change the log formatter when log_format is set.""" _log_handler = self.log.handlers[0] - _log_formatter = LevelFormatter(new, datefmt=self._log_datefmt) + _log_formatter = LevelFormatter(new, datefmt=self.log_datefmt) _log_handler.setFormatter(_log_formatter) log = Instance(logging.Logger)