from typing import Any
from typing import Dict
from datetime import datetime


def add_timestamp_logproc(
        _logger: Any,
        _method: str,
        event_dict: Dict[str, Any]) -> Dict[str, Any]:
    """
    Structlog processor, adding current timstamp to the log entry.
    """

    event_dict['_when'] = datetime.utcnow().isoformat()
    return event_dict