golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/zmq/log/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
161 B
Del
OK
__main__.cpython-310.pyc
3.23 KB
Del
OK
handlers.cpython-310.pyc
5.9 KB
Del
OK
Edit: handlers.cpython-310.pyc
o �xeB � @ 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<