nlcpy.logging.set_stream_handler
- nlcpy.logging.set_stream_handler(logger_name, stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, level=20, format=None)[source]
Sets StreamHandler to the specified logger.
- Parameters
- logger_namestr
Logger name
- streamstream
Stream to be logged.
- levellevel
Logging level.
- formatformat
Logging format.
- Returns
- loggerlogger
Logger that corresponds to the logger name.