📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 21:34:09
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
cl_plus
/
daemon
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/cl_plus/daemon/__pycache__
🔄 Refresh
✏️
Editing: logsetup.cpython-311.opt-1.pyc
Read Only
� ��j/ � �f � d dl Z d dlZd dlmZ dZdadadadej ej fd�Z d� Zd� Zd� Z dS ) � N)� SysLogHandlerz/var/log/clplus_sender.log� clplus_senderc �� � t j � t j � � t |� � t � � t |� � t j | � � }d|_ |S )z� Sets up logging :param str caller_name: :param console_level: :param file_level: :return logging.Logger: log, initialized F) �logging�root�setLevel�DEBUG�init_console_log�init_syslog� init_file_log� getLogger� propagate)�caller_name� console_level� file_level�loggers ��/builddir/build/BUILDROOT/cl-end-server-tools-1.1.20-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/cl_plus/daemon/logsetup.py� setup_loggingr s^ � � �L���'�-�(�(�(��]�#�#�#��M�M�M��*���� � �{� +� +�F��F���M� c �` � t ��t dt j �� � a t j � t � � t j d�� � } t � | � � t � t j � � d S d S # t $ r Y d S w xY w)Nz/dev/log)�address�facilityz1lve-stats: (%(name)s) [%(levelname)s] %(message)s��fmt)�SYS_LOGr � LOG_DAEMONr r � addHandler� Formatter�setFormatterr �ERROR� Exception)� formatter_syss r r r ( s� � � ��?�#�J��AY�Z�Z�Z�G��L�#�#�G�,�,�,�#�-�2e�f�f�f�M�� � ��/�/�/����W�]�+�+�+�+�+� �?�� � � � ���� ���s �BB � B-�,B-c �J � t ��t j t t j t j z t j z d� � } t j |d� � t j |� � n# t j |� � w xY wt j t � � a t j � t � � t j d�� � }t � |� � t � | � � d S # t $ r Y d S w xY w)Ni� z3%(asctime)s: (%(name)s) [%(levelname)s] %(message)sr )�FILE_LOG�os�open�_log_file_name�O_WRONLY�O_CREAT� O_NOFOLLOW�fchmod�closer �FileHandlerr r r r r r! )r �fd� formatters r r r 5 s� � � ��������r�z�1�B�M�A�5�J� J�B� �� �"�e�$�$�$��������������������*�>�:�:�H��L�#�#�H�-�-�-��)�.c�d�d�d�I��!�!�)�,�,�,����*�%�%�%�%�%��� � � ���� ���s+ �AD � A3 �D �3B � B D � D"�!D"c � � t �ft j � � a t j � t � � t j d�� � }t � |� � t � | � � d S )Nz&%(levelname)s : (%(name)s) %(message)sr )�CONSOLE_LOGr � StreamHandlerr r r r r )r �formatter_consoles r r r H sp � ����+�-�-�������,�,�,�#�-�2Z�[�[�[��� � �!2�3�3�3�����'�'�'�'�'r )r% r �logging.handlersr r'