Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/logger/__pycache__/ |
Upload File : |
o �b� � @ sn d Z ddlZddlmZmZmZ ddlmZ ddlm Z ddl mZ ddlm Z dd lmZ G d d� d�ZdS )z File-like object that logs. � N)�AnyStr�Iterable�Optional)� NamedConstant)�Version)�deprecatedProperty� )�LogLevel)�Loggerc @ sB e Zd ZdZdZeedddd��dd� �Zejdd� �Ze j d fd edede e d d fdd�Zed efdd��Zed efdd��Zed efdd��Zed+dd��Zed efdd��Zd+dd�Zd+dd�Zd efdd�Zd efd d!�Zd"ed d fd#d$�Zd%ee d d fd&d'�Zd(e d d fd)d*�Z!e!Z"e!Z#e!Z$e!Z%e!Z&e!Z'e!Z(e!Z)d S ),�LoggingFileac File-like object that turns C{write()} calls into logging events. Note that because event formats are L{str}, C{bytes} received via C{write()} are converted to C{str}, which is the opposite of what C{file} does. @ivar softspace: Attribute to make this class more file-like under Python 2; value is zero or one. Do not use. r �Twisted� � c C � | j S �N�� _softspace��self� r �4/usr/lib/python3/dist-packages/twisted/logger/_io.py� softspace! s zLoggingFile.softspacec C s || _ d S r r )r �valuer r r r % s N�logger�level�encoding�returnc C s6 || _ || _|du rt�� | _n|| _d| _d| _dS )a @param logger: the logger to log through. @param level: the log level to emit events with. @param encoding: The encoding to expect when receiving bytes via C{write()}. If L{None}, use C{sys.getdefaultencoding()}. N� F)r �log�sys�getdefaultencoding� _encoding�_buffer�_closed)r r r r r r r �__init__) s zLoggingFile.__init__c C r )zm Read-only property. Is the file closed? @return: true if closed, otherwise false. �r# r r r r �closed@ � zLoggingFile.closedc C r )zU Read-only property. File encoding. @return: an encoding. )r! r r r r r I r'