Current Path: > > opt > alt > python311 > lib64 > python3.11 > logging > __pycache__ >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-311.opt-1.pyc | File | 98739 bytes | June 23 2025 15:48:04. | |
__init__.cpython-311.opt-2.pyc | File | 69966 bytes | June 23 2025 15:48:07. | |
__init__.cpython-311.pyc | File | 98805 bytes | June 23 2025 15:48:01. | |
config.cpython-311.opt-1.pyc | File | 44852 bytes | June 23 2025 15:48:04. | |
config.cpython-311.opt-2.pyc | File | 40887 bytes | June 23 2025 15:48:07. | |
config.cpython-311.pyc | File | 44930 bytes | June 23 2025 15:48:01. | |
handlers.cpython-311.opt-1.pyc | File | 70209 bytes | June 23 2025 15:48:01. | |
handlers.cpython-311.opt-2.pyc | File | 51186 bytes | June 23 2025 15:48:07. | |
handlers.cpython-311.pyc | File | 70209 bytes | June 23 2025 15:48:01. |
� !A?h�� � �t � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m Z mZmZ ddl Z ddlZddlZdZdZdZdZdZdZd Z G d � dej � � Z G d� d e� � Z G d� de� � Z G d� dej � � Z G d� dej � � Z G d� de� � Z G d� dej � � Z G d� dej � � Z G d� dej � � Z! G d� dej � � Z" G d� dej � � Z# G d � d!e#� � Z$ G d"� d#ej � � Z% G d$� d%e&� � Z'dS )&z� Additional handlers for the logging package for Python. The core package is based on PEP 282 and comments thereto in comp.lang.python. Copyright (C) 2001-2021 Vinay Sajip. All Rights Reserved. To use, simply 'import logging.handlers' and log away! � N)�ST_DEV�ST_INO�ST_MTIMEi<# i=# i># i?# i �Q c �4 � e Zd ZdZdZdZdd�Zd� Zd� Zd� Z dS ) �BaseRotatingHandlerz� Base class for handlers that rotate log files at a certain point. Not meant to be instantiated directly. Instead, use RotatingFileHandler or TimedRotatingFileHandler. NFc �z � t j � | |||||�� � || _ || _ || _ dS )zA Use the specified filename for streamed logging ��mode�encoding�delay�errorsN)�logging�FileHandler�__init__r r r ��self�filenamer r r r s �7/opt/alt/python311/lib64/python3.11/logging/handlers.pyr zBaseRotatingHandler.__init__6 sM � � ��$�$�T�8�$�.6�e�,2� %� 4� 4� 4� �� � �� ������ c �� � | � |� � r| � � � t j � | |� � dS # t $ r | � |� � Y dS w xY w)z� Emit a record. Output the record to the file, catering for rollover as described in doRollover(). N)�shouldRollover� doRolloverr r �emit� Exception�handleError�r �records r r zBaseRotatingHandler.emitA s� � � %��"�"�6�*�*� "����!�!�!���$�$�T�6�2�2�2�2�2��� %� %� %����V�$�$�$�$�$�$� %���s �A A � A0�/A0c �^ � t | j � � s|}n| � |� � }|S )a� Modify the filename of a log file when rotating. This is provided so that a custom filename can be provided. The default implementation calls the 'namer' attribute of the handler, if it's callable, passing the default name to it. If the attribute isn't callable (the default is None), the name is returned unchanged. :param default_name: The default name for the log file. )�callable�namer)r �default_name�results r �rotation_filenamez%BaseRotatingHandler.rotation_filenameO s3 � � �� �#�#� .�!�F�F��Z�Z��-�-�F�� r c �� � t | j � � s8t j � |� � rt j ||� � dS dS | � ||� � dS )aL When rotating, rotate the current log. The default implementation calls the 'rotator' attribute of the handler, if it's callable, passing the source and dest arguments to it. If the attribute isn't callable (the default is None), the source is simply renamed to the destination. :param source: The source filename. This is normally the base filename, e.g. 'test.log' :param dest: The destination filename. This is normally what the source is rotated to, e.g. 'test.log.1'. N)r �rotator�os�path�exists�rename)r �source�dests r �rotatezBaseRotatingHandler.rotateb sj � � ���%�%� '��w�~�~�f�%�%� (�� �&�$�'�'�'�'�'� (� (� �L�L���&�&�&�&�&r )NFN) �__name__� __module__�__qualname__�__doc__r! r&