HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python3.6/site-packages/zmq/log/__pycache__/__main__.cpython-36.pyc
3

VS�_l�
@s�dZddlZddlmZddlZddlmZmZejd�Zej	de
dd�ej	d	d
e
ddd
�ej	dddd�ej	de
ddd
�ej	de
ddd
�ej	ddddd�ej	ddddd�ej�Zej
�rddlZej�ejjejjejjejjejjejjd�ZniZej�Zejej�Zejeej��ejej�iZ �xt�yRej!dej"��r�ej#�\ZZ$ej%d �j&�j'd!�Z(ej)�r�e(j*d"d#�e+e,e(�e,e ��D��gZ-xXe.e(�D]L\Z/Z0e1e,e0�e j2e/d��e e/<dj3d$e
e e/�d%f�Z4e-j5e4j6e0���q�We,e(�d&k�re(dZ7ne(d&Z7e$j%d �j&�ej8�rBej9�j:ej;�d'ndej)�rVd!j3e-�nej%d �j&�ej2e7d�ej2d(d�ej<d)�Z=e>d*j6fe=��Wne?k
�r�PYnX�q>Wej@ej�ej
�r�e>ejj�dS)+apyzmq log watcher.

Easily view log messages published by the PUBHandler in zmq.log.handlers

Designed to be run as an executable module - try this to see options:
    python -m zmq.log -h

Subscribes to the '' (empty string) topic by default which means it will work
out-of-the-box with a PUBHandler object instantiated with default settings. 
If you change the root topic with PUBHandler.setRootTopic() you must pass 
the value to this script with the --topic argument.

Note that the default formats for the PUBHandler object selectively include
the log level in the message. This creates redundancy in this script as it
always prints the topic of the message, which includes the log level. 
Consider overriding the default formats with PUBHandler.setFormat() to
avoid this issue.

�N)�datetime)�u�
cast_byteszZMQ Log Watcher�zmq_pub_urlzURL to a ZMQ publisher socket.)�type�helpz-tz--topic�z1Only receive messages that start with this topic.)r�defaultrz--timestamp�
store_truez&Append local time to the log messages.)�actionrz--separatorz | z*String to print between topic and message.z--dateformatz%Y-%d-%m %H:%Mz5Set alternative date format for use with --timestamp.z--alignFz3Try to align messages by the width of their topics.)rr	rz--colorzHColor the output based on the error level. Requires the colorama module.)�DEBUG�INFOZWARNINGZERRORZCRITICAL�	__RESET__�
�utf8�.ccs|]
}dVqdS)� N�)�.0Zextrarr� /usr/lib64/python3.6/__main__.py�	<genexpr>Qsrz{:<�}�rr)�msgZtsZaligned�colorZ	color_rst�sepz){ts}{color}{aligned}{sep}{msg}{color_rst})A�__doc__�argparserZzmqZzmq.utils.strtypesrr�ArgumentParser�parser�add_argument�str�
parse_args�argsrZcoloramaZinitZForeZLIGHTCYAN_EXZ
LIGHTWHITE_EXZYELLOWZLIGHTRED_EXZRESETZcolorsZContextZctxZsocketZSUB�subZ	subscribeZtopicZconnectrZtopic_widthsZpollZPOLLINZrecv_multipartr�decode�strip�splitZtopicsZalign�extend�range�lenZ
aligned_parts�	enumerate�key�part�max�get�joinZfmt�append�format�levelZ	timestampZnowZstrftimeZ
dateformatZ	separatorZfields�print�KeyboardInterruptZ
disconnectrrrr�<module>s|




"