+
    	i                      N   R t ^ RIt^ RIt]P                  ! R4      t]P
                  '       g<   ]P                  ]P                  4       ]P                  ]P                  ! 4       4       ]P                  ! R4      t
 ! R R]P                  4      t]P                  RR l4       tR# )a(  Logging setup.

The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.

Logging levels are used for specific purposes:

- errors are used in ``LOGGER`` for unreachable or unusable external resources,
  including unreachable stylesheets, unreachables images and unreadable images;
- warnings are used in ``LOGGER`` for unknown or bad HTML/CSS syntaxes,
  unreachable local fonts and various non-fatal problems;
- infos are used in ``PROCESS_LOGGER`` to advertise rendering steps.

N
weasyprintweasyprint.progressc                   *   a  ] tR t^t o RtR tRtV tR# )CallbackHandlerz:A logging handler that calls a function for every message.c                P    \         P                  P                  V 4       Wn        R # )N)loggingHandler__init__emit)selfcallbacks   &&W/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/weasyprint/logger.pyr	   CallbackHandler.__init__   s      &	    )r
   N)__name__
__module____qualname____firstlineno____doc__r	   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     D r   r   c              #    aa"   Sf   \         P                  o\         P                  ! V 4      p . oVV3R lpV P                  pV P                  p. V n        V P                  \        V4      4       V P                  \         P                  4        Sx  W0n        V P                  V4       R#   Y0n        T P                  T4       i ; i5i)z;Return a context manager that captures all logged messages.Nc                    < V P                   R 8X  d   R# V P                  S8  d   R# SP                  V P                  P	                  4        RV P                  4        24       R# )r   Nz: )namelevelnoappend	levelnameupper
getMessage)recordlevelmessagess   &r   r
   capture_logs.<locals>.emit*   sS    ;;//>>E!6++1134Bv7H7H7J6KLMr   )	r   INFO	getLoggerhandlersr!   
addHandlerr   setLevelDEBUG)loggerr!   r
   previous_handlersprevious_levelr"   s   &f   @r   capture_logsr-   "   s      }v&FHN \\NFO
od+,
OOGMM"(+' ,'s   BC
B. C
.CC
)r   N)r   
contextlibr   r%   LOGGERr&   r(   WARNINGr'   NullHandlerPROGRESS_LOGGERr   r   contextmanagerr-    r   r   <module>r5      s     			<	(
OOGOO$
g))+,##$9:goo  ( (r   