🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 16:42:50 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
client
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/influxdb_client/client/__pycache__
🔄 Refresh
✏️
Editing: logging_handler.cpython-38.pyc
Read Only
U v�i� � @ s. d Z ddlZddlmZ G dd� dej�ZdS )z3Use the influxdb_client with python native logging.� N)�InfluxDBClientc s� e Zd ZdZee�i �j�� �dg Z ddd�� fdd� Z dd� Zdd �� fd d�Zej dd�d d�Zej ed�dd�Z� ZS )�InfluxLoggingHandlerz� InfluxLoggingHandler instances dispatch logging events to influx. There is no need to set a Formatter. The raw input will be passed on to the influx write api. �messageN)�client_args�write_api_argsc s\ t � �� || _|dkri n|}tf |||d�|��| _|dkrDi n|}| jjf |�| _dS )z� Initialize defaults. The arguments `client_args` and `write_api_args` can be dicts of kwargs. They are passed on to the InfluxDBClient and write_api calls respectively. N)�url�token�org)�super�__init__�bucketr �client� write_api)�selfr r r r r r �� __class__� �W/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/client/logging_handler.pyr s zInfluxLoggingHandler.__init__c C s | � � dS )z#Make sure all resources are closed.N)�close�r r r r �__del__"