'Constructor.
Args:
logger: The logging.Logger to use for logging, or a logger name.
action: A description of what\'s being done.'

def __init__(self, logger, action='operation'):

    if isinstance(logger, str):
        self._logger = logging.getLogger(logger)
    else:
        self._logger = logger
    self._started = None
    self._action = action
