code: def console_progress_callback(current, maximum, message=None):
          
          # noinspection PyChainedComparisons
          if maximum > 1000 and current % 1000 != 0 and current != maximum:
              return
          if message is not None:
              LOGGER.info(message['description'])
          LOGGER.info('Task progress: %i of %i' % (current, maximum))
docs: Simple console based callback implementation for tests.
  
          :param current: Current progress.
          :type current: int
  
          :param maximum: Maximum range (point at which task is complete.
          :type maximum: int
  
          :param message: Optional message dictionary to containing content
              we can display to the user. See safe.definitions.analysis_steps
              for an example of the expected format
          :type message: dict