[DEPRECATED] Process accesslog record to map Python dictionary.

    Returned dictionary has following keys:

    - remote_address: remote IP address.
    - access_time: datetime object.
    - request_path: HTTP request path, this will be splitted from query.
    - request_query: HTTP requert query string removed from "?".
    - request_method: HTTP request method.
    - request_version: HTTP request version.
    - response_status: HTTP response status code. (int)
    - response_size: HTTP response size, if available. (int)
    - referer: Referer header. if "-" is given, that will be ignored.
    - user_agent: User agent. if "-" is given, that will be ignored.
    - ident: remote logname
    - user: remote user
    - trailing: Additional information if using custom log format.

    :param raw: one line of access log combined format
    :type raw: string
    :rtype: dict

def logentry(raw):
    """[DEPRECATED] Process accesslog record to map Python dictionary.

    Returned dictionary has following keys:

    - remote_address: remote IP address.
    - access_time: datetime object.
    - request_path: HTTP request path, this will be splitted from query.
    - request_query: HTTP requert query string removed from "?".
    - request_method: HTTP request method.
    - request_version: HTTP request version.
    - response_status: HTTP response status code. (int)
    - response_size: HTTP response size, if available. (int)
    - referer: Referer header. if "-" is given, that will be ignored.
    - user_agent: User agent. if "-" is given, that will be ignored.
    - ident: remote logname
    - user: remote user
    - trailing: Additional information if using custom log format.

    :param raw: one line of access log combined format
    :type raw: string
    :rtype: dict
    """
    warnings.warn('use "parse()" instead', DeprecationWarning)
    e = parse(raw.rstrip())
    if e is None:
        return
    # backward compat mapping
    entry = {
        'access_time': e['time'],
        'remote_address': e['host'],
        'request_path': e['path'],
        'request_query': e['query'],
        'request_method': e['method'],
        'request_version': e['protocol'],
        'response_status': e['status']
    }
    if 'size' in e:
        entry['response_size'] = e['size']
    if 'user_agent' in e:
        entry['user_agent'] = e['ua']
    return entry