|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
| def | __init__ (self, strm=None) |
| def | flush (self) |
| def | emit (self, record) |
Public Member Functions inherited from compat_logging.Handler | |
| def | __init__ (self, level=NOTSET) |
| def | createLock (self) |
| def | acquire (self) |
| def | release (self) |
| def | setLevel (self, level) |
| def | format (self, record) |
| def | emit (self, record) |
| def | handle (self, record) |
| def | setFormatter (self, fmt) |
| def | flush (self) |
| def | close (self) |
| def | handleError (self, record) |
Public Member Functions inherited from compat_logging.Filterer | |
| def | __init__ (self) |
| def | addFilter (self, filter) |
| def | removeFilter (self, filter) |
| def | filter (self, record) |
Public Attributes | |
| stream | |
| formatter | |
Public Attributes inherited from compat_logging.Handler | |
| level | |
| formatter | |
| lock | |
Public Attributes inherited from compat_logging.Filterer | |
| filters | |
A handler class which writes logging records, appropriately formatted, to a stream. Note that this class does not close the stream, as sys.stdout or sys.stderr may be used.
| def compat_logging.StreamHandler.__init__ | ( | self, | |
strm = None |
|||
| ) |
Initialize the handler. If strm is not specified, sys.stderr is used.
| def compat_logging.StreamHandler.emit | ( | self, | |
| record | |||
| ) |
Emit a record. If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline [N.B. this may be removed depending on feedback]. If exception information is present, it is formatted using traceback.print_exception and appended to the stream.
| def compat_logging.StreamHandler.flush | ( | self | ) |
Flushes the stream.
| compat_logging.StreamHandler.formatter |
| compat_logging.StreamHandler.stream |
1.8.13