+
    Dfj                     v    R t ^ RIt^ RIHtHtHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^RIHt ^RIHt  ! R R	4      tR# )
z
File-like object that logs.
N)AnyStrIterableOptional)NamedConstant)Version)deprecatedProperty)LogLevel)Loggerc                     a  ] tR t^t o Rt^ t]! ]! R^^^ 4      4      R 4       t]P                  R 4       t]
P                  R3V 3R lR llt]V 3R lR	 l4       t]V 3R
 lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       tV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR lt]t]t]t]t]t]t]t ]t!R t"V t#R# )!LoggingFileaK  
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.
Twistedc                    V P                   # N
_softspaceselfs   &4/usr/lib/python3/dist-packages/twisted/logger/_io.py	softspaceLoggingFile.softspace!   s        c                    Wn         R # r   r   )r   values   &&r   r   r   %   s    r   Nc                @   < V ^8  d   QhRS[ RS[RS[S[,          RR/# )   loggerlevelencodingreturnN)r	   r   r   str)format__classdict__s   "r   __annotate__LoggingFile.__annotate__)   s7        3-	
 
r   c                    W n         Wn        Vf   \        P                  ! 4       V n        MW0n        RV n        RV n        R# )z
@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   s   &&&&r   __init__LoggingFile.__init__)   s7     
 335DN%Nr   c                    < V ^8  d   QhRS[ /# r   r   bool)r    r!   s   "r   r"   r#   A   s       r   c                    V P                   # )zU
Read-only property.  Is the file closed?

@return: true if closed, otherwise false.
r+   r   s   &r   closedLoggingFile.closed@   s     ||r   c                    < V ^8  d   QhRS[ /# r/   r   )r    r!   s   "r   r"   r#   J   s      # r   c                    V P                   # )z=
Read-only property.   File encoding.

@return: an encoding.
)r)   r   s   &r   r   LoggingFile.encodingI   s     ~~r   c                    < V ^8  d   QhRS[ /# r/   r7   )r    r!   s   "r   r"   r#   S   s      c r   c                    R# )z/
Read-only property.  File mode.

@return: "w"
w r   s   &r   modeLoggingFile.modeR   s     r   c                   < V ^8  d   QhRR/# r   r   Nr=   )r    r!   s   "r   r"   r#   \   s      $ r   c                    R# )zG
Read-only property.  Types of newlines encountered.

@return: L{None}
Nr=   r   s   &r   newlinesLoggingFile.newlines[   s     r   c                    < V ^8  d   QhRS[ /# r/   r7   )r    r!   s   "r   r"   r#   e   s     
 
c 
r   c                    RP                  V P                  P                  V P                  P                  V P
                  P                  4      # )zk
The name of this file; a repr-style string giving information about its
namespace.

@return: A file name.
z
<{} {}#{}>)r    	__class____name__r&   	namespacer   namer   s   &r   rJ   LoggingFile.named   s<     ""NN##HHJJOO
 	
r   c                   < V ^8  d   QhRR/# rA   r=   )r    r!   s   "r   r"   r#   r   s      t r   c                    RV n         R# )z4
Close this file so it can no longer be written to.
TNr3   r   s   &r   closeLoggingFile.closer   s     r   c                   < V ^8  d   QhRR/# rA   r=   )r    r!   s   "r   r"   r#   x   s      t r   c                    R# )z#
No-op; this file does not buffer.
Nr=   r   s   &r   flushLoggingFile.flushx   s     	r   c                    < V ^8  d   QhRS[ /# r/   )int)r    r!   s   "r   r"   r#   ~   s       r   c                    R# )zX
Returns an invalid file descriptor, since this is not backed by an FD.

@return: C{-1}
r=   r   s   &r   filenoLoggingFile.fileno~   s	     	r   c                    < V ^8  d   QhRS[ /# r/   r0   )r    r!   s   "r   r"   r#      s       r   c                    R# )z3
A L{LoggingFile} is not a TTY.

@return: C{False}
Fr=   r   s   &r   isattyLoggingFile.isatty   s     r   c                $   < V ^8  d   QhRS[ RR/# )r   messager   N)r   )r    r!   s   "r   r"   r#      s     F FV F Fr   c                t   V P                   '       d   \        R4      h\        V\        4      '       d   VP	                  V P
                  4      pMTpV P                  V,           P                  R4      pVR,          V n        V^ R pV F+  pV P                  P                  V P                  RVR7       K-  	  R# )z?
Log the given message.

@param message: The message to write.
zI/O operation on closed file
z{log_io})r    log_ioNrW   )r+   
ValueError
isinstancebytesdecoder)   r*   splitr&   emitr   )r   r_   textlineslines   &&   r   writeLoggingFile.write   s     <<<;<<gu%%>>$..1DD$++D1RyaDHHMM$**ZME r   c                4   < V ^8  d   QhRS[ S[,          RR/# )r   rj   r   N)r   r   )r    r!   s   "r   r"   r#      s        0 T r   c                :    V F  pV P                  V4       K  	  R# )zR
Log each of the given lines as a separate message.

@param lines: Data to write.
N)rl   )r   rj   rk   s   && r   
writelinesLoggingFile.writelines   s     DJJt r   c                $   < V ^8  d   QhRS[ RR/# )r   argsr   N)object)r    r!   s   "r   r"   r#      s     / /& /T /r   c                    \        R4      h)z?
Template for unsupported operations.

@param args: Arguments.
zunsupported operation)OSError)r   rs   s   &*r   _unsupportedLoggingFile._unsupported   s     -..r   )r*   r+   r)   r   r   r&   )$rH   
__module____qualname____firstlineno____doc__r   r   r   r   setterr   infor,   propertyr4   r   r>   rC   rJ   rN   rR   rX   r\   rl   rp   rw   readnextreadline	readlines
xreadlinesseektelltruncate__static_attributes____classdictcell__)r!   s   @r   r   r      s9     J	2q!45 6      (}}"&	 .         
 
    F F* / / DDHIJDDHr   r   )r|   r'   typingr   r   r   
constantlyr   incrementalr   twisted.python.deprecater   _levelsr   _loggerr	   r   r=   r   r   <module>r      s0   
  - - $  7  g gr   