U
    kuf»  ã                   @  sD   U d Z ddlmZ ddlZddlmZ daded< ddœd	d
„ZdS )z Grab the global logger instance.é    )ÚannotationsN)ÚAnyz2logging.Logger | logging.LoggerAdapter[Any] | NoneÚ_loggerz+logging.Logger | logging.LoggerAdapter[Any])Úreturnc                  C  sD   t dkr@ddlm}  |  ¡ r(|  ¡ ja nt d¡a t  t 	¡ ¡ t S )z‰Grab the global logger instance.

    If a global Application is instantiated, grab its logger.
    Otherwise, grab the root logger.
    Né   ©ÚApplicationZ	traitlets)
r   Úconfigr   ZinitializedÚinstanceÚlogÚloggingÚ	getLoggerÚ
addHandlerÚNullHandlerr   © r   ú1/tmp/pip-unpacked-wheel-utpcgctl/traitlets/log.pyÚ
get_logger   s    
r   )	Ú__doc__Ú
__future__r   r   Útypingr   r   Ú__annotations__r   r   r   r   r   Ú<module>   s
   