%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/samba/gp/util/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/samba/gp/util/__pycache__/logging.cpython-312.pyc |
�
�0�e� � � � d dl Z d dlZd dlZd dlZd dlZd dlZ ej d� Zd� Z G d� de � Z
d� Z G d� de � Zy) � N�gpc � � t j t j t j
� � t j
t j � |dk( r$t j
t j � y |dk( r$t j
t j � y |dk( r$t j
t j � y |dk\ r$t j
t j � y y )N� � � � )�logger�
addHandler�logging�
StreamHandler�sys�stdout�setLevel�CRITICAL�ERROR�WARNING�INFO�DEBUG)�name� log_levels �7/usr/lib/python3/dist-packages/samba/gp/util/logging.py�logger_initr s� � �
���g�+�+�C�J�J�7�8�
�O�O�G�$�$�%��A�~�����
�
�&� �a��������(� �a��������%� �a������
�
�&�
� c � � e Zd ZdZdd�Zd� Zy)�slogmz&
Structured log message class
Nc � � |�i }|| _ || _ t | j t � sd| j i| _ y y )N�val)�message�kwargs�
isinstance�dict)�selfr r s r �__init__zslogm.__init__. s= � ��>��F��������$�+�+�t�,�!�4�;�;�0�D�K� -r c � � t t j j � j dd�� � }t � }|j | j � dj || j |� }|S )N� �milliseconds)�sep�timespecz
{}|{} | {}) �str�datetime�now� isoformatr! �updater �formatr )r"