def _log_lsp_event(remote_logging: Optional[backend_arguments.RemoteLogging], event: LSPEvent, integers: Optional[Dict[(str, int)]]=None, normals: Optional[Dict[(str, Optional[str])]]=None) -> None:
    if (remote_logging is not None):
        logger = remote_logging.logger
        if (logger is not None):
            log_identifier = remote_logging.identifier
            statistics_logger.log(category=statistics_logger.LoggerCategory.LSP_EVENTS, logger=logger, integers=integers, normals={**(normals or {}), 'event': event.value, 'pyre client version': version.__version__, **({'identifier': log_identifier} if (log_identifier is not None) else {})})
def _log_lsp_event(remote_logging: Optional[backend_arguments.RemoteLogging], event: LSPEvent, integers: Optional[Dict[(str, int)]]=None, normals: Optional[Dict[(str, Optional[str])]]=None) -> None:
    if (remote_logging is not None):
        logger = remote_logging.logger
        if (logger is not None):
            log_identifier = remote_logging.identifier
            statistics_logger.log(category=statistics_logger.LoggerCategory.LSP_EVENTS, logger=logger, integers=integers, normals={**(normals or {}), 'event': event.value, 'pyre client version': version.__version__, **({'identifier': log_identifier} if (log_identifier is not None) else {})})