array_split.logging.SplitStreamHandler.__init__

SplitStreamHandler.__init__(outstr=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>, errstr=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>, splitlevel=30)

Initialise with a pair of streams and a threshold level which determines the stream where the messages are writting.

Parameters:
  • outstr (file-like) – Logging messages are written to this stream if the message level is less than self.splitLevel.
  • errstr (stream) – Logging messages are written to this stream if the message level is greater-than-or-equal-to self.splitLevel.
  • splitlevel (int) – Logging level threshold determining split streams for log messages.