
    -e                    Z   U d Z ddlmZ ddlZ ej        e          ZddlZddlm	Z	m
Z
 ddlmZ dZdZded	<   ddZdZ ej        ed           ddZe e
e	e          j        _        e e
e	e          _         ej                    Z ej        d          Z ej                    Zee                    e           ej        sbej        s] ej        ej                  Ze                     ej        ej                             e                    e           de_         dS dS dS )a   Configure the logging system for Bokeh.

By default, logging is not configured, to allow users of Bokeh to have full
control over logging policy. However, it is useful to be able to enable
logging arbitrarily during when developing Bokeh. This can be accomplished
by setting the environment variable ``BOKEH_PY_LOG_LEVEL``. Valid values are,
in order of increasing severity:

- ``debug``
- ``info``
- ``warn``
- ``error``
- ``fatal``
- ``none``

The default logging level is ``none``.
    )annotationsN)Anycast   )settings)basicConfigzlogging.Handler | Nonedefault_handlerkwargsr   returnNonec                     t           +t                              t                      dt          _        t	          j        di |  dS )zh
    A logging.basicConfig() wrapper that also undoes the default
    Bokeh-specific configuration.
    NT )r	   bokeh_loggerremoveHandler	propagateloggingr   )r
   s    4lib/python3.11/site-packages/bokeh/util/logconfig.pyr   r   ;   sC    
 """?333!%!!&!!!!!    	   TRACEselflogging.Loggermessagestrargskwsc                h    |                      t                    r | j        t          ||fi | d S d S )N)isEnabledForr   _log)r   r   r   r   s       r   tracer    S   sF     /	%$..#...../ /r   bokehF)r
   r   r   r   )
r   r   r   r   r   r   r   r   r   r   )!__doc__
__future__r   r   	getLogger__name__logsystypingr   r   r   __all__r	   __annotations__r   r   addLevelNamer    Loggerpy_log_levellevelr   root_loggersetLevelhandlersStreamHandlerstderrsetFormatter	FormatterBASIC_FORMAT
addHandlerr   r   r   r   <module>r8      s    * # " " " " " g!! 


                +/ . . . ." " " ", 	
  UG $ $ $/ / / / #(S'     S'    w ))g!!%    # 5 # ,g+CJ77O  !2!273G!H!HIIIO,,, #L# # # #r   