Mininet Python API Reference Manual
|
StreamHandler that doesn't print newlines by default. More...
Public Member Functions | |
def | emit (self, record) |
Emit a record. More... | |
StreamHandler that doesn't print newlines by default.
Since StreamHandler automatically adds newlines, define a mod to more easily support interactive mode when we want it, or errors-only logging for running unit tests.
def mininet.log.StreamHandlerNoNewline.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.printException and appended to the stream.