§
    |{Èc
  ã                   ó®   — d Z ddlZddlZej        Z G d„ dej        ¦  «        Z e¦   «         Z ed¦  «        Ze                     e¦  «         d„ Z	d„ Z
dS )aÌ  Logging utilities for Dulwich.

Any module that uses logging needs to do compile-time initialization to set up
the logging environment. Since Dulwich is also used as a library, clients may
not want to see any logging output. In that case, we need to use a special
handler to suppress spurious warnings like "No handlers could be found for
logger dulwich.foo".

For details on the _NullHandler approach, see:
http://docs.python.org/library/logging.html#configuring-logging-for-a-library

For many modules, the only function from the logging module they need is
getLogger; this module exports that function for convenience. If a calling
module needs something else, it can import the standard logging module
directly.
é    Nc                   ó   — e Zd ZdZd„ ZdS )Ú_NullHandlerz;No-op logging handler to avoid unexpected logging warnings.c                 ó   — d S )N© )ÚselfÚrecords     ú3/usr/lib/python3/dist-packages/dulwich/log_utils.pyÚemitz_NullHandler.emit/   s   € Øˆó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r	   r   r   ,   s)   € € € € € ØEÐEðð ð ð ð r   r   Údulwichc                  óx   — t          ¦   «          t          j        t          j        t          j        d¬¦  «         dS )z#Set up the default Dulwich loggers.z&%(asctime)s %(levelname)s: %(message)s)ÚlevelÚstreamÚformatN)Úremove_null_handlerÚloggingÚbasicConfigÚINFOÚsysÚstderrr   r   r	   Údefault_logging_configr   8   s?   € åÑÔÐÝÔÝŒlÝŒzØ7ðñ ô ð ð ð r   c                  óD   — t                                t          ¦  «         dS )zÿRemove the null handler from the Dulwich loggers.

    If a caller wants to set up logging using something other than
    default_logging_config, calling this function first is a minor optimization
    to avoid the overhead of using the _NullHandler.
    N)Ú_DULWICH_LOGGERÚremoveHandlerÚ_NULL_HANDLERr   r   r	   r   r   B   s   € õ ×!Ò!¥-Ñ0Ô0Ð0Ð0Ð0r   )r   r   r   Ú	getLoggerÚHandlerr   r   r   Ú
addHandlerr   r   r   r   r	   ú<module>r#      s¯   ðð*ð ð" €€€Ø 
€
€
€
àÔ€	ðð ð ð ð �7”?ñ ô ð ð �‘”€Ø�)˜IÑ&Ô&€Ø × Ò ˜=Ñ )Ô )Ð )ðð ð ð1ð 1ð 1ð 1ð 1r   