File: //opt/saltstack/salt/lib/python3.10/site-packages/zmq/log/__pycache__/handlers.cpython-310.pyc
o
�N�gB � @ sz d Z ddlZddlmZmZ ddlZdZG dd� dej�ZG dd� dej �Z
d �� D ]Ze
ej e�Zee
ed
d� � q*dS )ay pyzmq logging handlers.
This mainly defines the PUBHandler object for publishing logging messages over
a zmq.PUB socket.
The PUBHandler can be used with the regular logging module, as in::
>>> import logging
>>> handler = PUBHandler('tcp://127.0.0.1:12345')
>>> handler.root_topic = 'foo'
>>> logger = logging.getLogger('foobar')
>>> logger.setLevel(logging.DEBUG)
>>> logger.addHandler(handler)
After this point, all messages logged by ``logger`` will be published on the
PUB socket.
Code adapted from StarCluster:
https://github.com/jtriley/StarCluster/blob/StarCluster-0.91/starcluster/logger.py
� N)�Optional�Union�::c @ s� e Zd ZU dZejed<