code: def _set_logging(
          logger_name="colin",
          level=logging.INFO,
          handler_class=logging.StreamHandler,
          handler_kwargs=None,
          format='%(asctime)s.%(msecs).03d %(filename)-17s %(levelname)-6s %(message)s',
          date_format='%H:%M:%S'):
      
      if level != logging.NOTSET:
          logger = logging.getLogger(logger_name)
          logger.setLevel(level)
  
          # do not readd handlers if they are already present
          if not [x for x in logger.handlers if isinstance(x, handler_class)]:
              handler_kwargs = handler_kwargs or {}
              handler = handler_class(**handler_kwargs)
              handler.setLevel(level)
  
              formatter = logging.Formatter(format, date_format)
              handler.setFormatter(formatter)
              logger.addHandler(handler)
docs: Set personal logger for this library.
  
      :param logger_name: str, name of the logger
      :param level: int, see logging.{DEBUG,INFO,ERROR,...}: level of logger and handler
      :param handler_class: logging.Handler instance, default is StreamHandler (/dev/stderr)
      :param handler_kwargs: dict, keyword arguments to handler's constructor
      :param format: str, formatting style
      :param date_format: str, date style in the logs