##// END OF EJS Templates
update traitlets.log imports
Min RK -
Show More
@@ -323,7 +323,7 b' class ConfigLoader(object):'
323 """
323 """
324
324
325 def _log_default(self):
325 def _log_default(self):
326 from IPython.utils.log import get_logger
326 from traitlets.log import get_logger
327 return get_logger()
327 return get_logger()
328
328
329 def __init__(self, log=None):
329 def __init__(self, log=None):
@@ -10,13 +10,13 b' _logger = None'
10 def get_logger():
10 def get_logger():
11 """Grab the global logger instance.
11 """Grab the global logger instance.
12
12
13 If a global IPython Application is instantiated, grab its logger.
13 If a global Application is instantiated, grab its logger.
14 Otherwise, grab the root logger.
14 Otherwise, grab the root logger.
15 """
15 """
16 global _logger
16 global _logger
17
17
18 if _logger is None:
18 if _logger is None:
19 from IPython.config import Application
19 from .config import Application
20 if Application.initialized():
20 if Application.initialized():
21 _logger = Application.instance().log
21 _logger = Application.instance().log
22 else:
22 else:
General Comments 0
You need to be logged in to leave comments. Login now