@@ -0,0 +1,643 @@
+%22%22%22Grab the global logger instance.%22%22%22%0A%0A# Copyright (c) IPython Development Team.%0A# Distributed under the terms of the Modified BSD License.%0A%0Aimport logging%0A%0A_logger = None%0A%0Adef get_logger():%0A    %22%22%22Grab the global logger instance.%0A    %0A    If a global IPython Application is instantiated, grab its logger.%0A    Otherwise, grab the root logger.%0A    %22%22%22%0A    global _logger%0A    %0A    if _logger is None:%0A        from IPython.config import Application%0A        if Application.initialized():%0A            _logger = Application.instance().log%0A        else:%0A            logging.basicConfig()%0A            _logger = logging.getLogger()%0A    return _logger%0A

add IPython.utils.log.get_logger