def __init__(self, logger: logging.Logger,
                 log_format: str=LOG_FORMAT) -> None:
        """Initialise the logger.

        logger is a logger object to be used for logging.
        log_format is a string with apache compatible log format description.

        """
        super().__init__(logger, log_format=log_format)

        _compiled_format = AccessLogger._FORMAT_CACHE.get(log_format)
        if not _compiled_format:
            _compiled_format = self.compile_format(log_format)
            AccessLogger._FORMAT_CACHE[log_format] = _compiled_format

        self._log_format, self._methods = _compiled_format
def __init__ ( self , logger : logging . Logger , log_format : str = LOG_FORMAT ) -> None : super ( ) . __init__ ( logger , log_format = log_format ) _compiled_format = AccessLogger . _FORMAT_CACHE . get ( log_format ) if not _compiled_format : _compiled_format = self . compile_format ( log_format ) AccessLogger . _FORMAT_CACHE [ log_format ] = _compiled_format self . _log_format , self . _methods = _compiled_format
Initialise the logger.

        logger is a logger object to be used for logging.
        log_format is a string with apache compatible log format description.