docs: def get_logging_console_handler(logger=None, formatter=LOGGING_DEFAULT_FORMATTER):
      """
      Adds a logging console handler to given logger or default logger.
  
      :param logger: Logger to add the handler to.
      :type logger: Logger
      :param formatter: Handler formatter.
      :type formatter: Formatter
      :return: Added handler.
      :rtype: Handler
      """
  
      logger = LOGGER if logger is None else logger
      logging_console_handler = logging.StreamHandler(sys.__stdout__)
      logging_console_handler.setFormatter(formatter)
      logger.addHandler(logging_console_handler)
      return logging_console_handler