twisted.logger.LoggingFile(object)
class documentationtwisted.logger
(View In Hierarchy)
File-like object that turns write()
calls into logging
events.
Note that because event formats are unicode
,
bytes
received via write()
are converted to
unicode
, which is the opposite of what file
does.
Instance Variable | softspace | File-like 'softspace'
attribute ; zero or one. (type: int ) |
Method | __init__ | |
Method | closed | Read-only property. Is the file closed? |
Method | encoding | Read-only property. File encoding. |
Method | mode | Read-only property. File mode. |
Method | newlines | Read-only property. Types of newlines encountered. |
Method | name | The name of this file; a repr-style string giving information about its namespace. |
Method | close | Close this file so it can no longer be written to. |
Method | flush | No-op; this file does not buffer. |
Method | fileno | Returns an invalid file descriptor, since this is not backed by an FD. |
Method | isatty | A LoggingFile
is not a TTY. |
Method | write | Log the given message. |
Method | writelines | Log each of the given lines as a separate message. |
Method | _unsupported | Template for unsupported operations. |
Read-only property. Is the file closed?
Returns | true if closed, otherwise false. (type: bool ) |
The name of this file; a repr-style string giving information about its namespace.
Returns | A file name. (type: str ) |
Returns an invalid file descriptor, since this is not backed by an FD.
Returns | -1 (type: int ) |
Template for unsupported operations.
Parameters | args | Arguments. (type: tuple of object ) |