Python 3 approach to custom logging, using `logging.getLogRecord(...)`

    Inspireb by: https://docs.python.org/3/howto/logging-cookbook.html#customizing-logrecord

    :return: A log record augmented with the values required by LOG_FORMAT, as per `_update_record(...)`

def _python3_record_factory(*args, **kwargs):
    """Python 3 approach to custom logging, using `logging.getLogRecord(...)`

    Inspireb by: https://docs.python.org/3/howto/logging-cookbook.html#customizing-logrecord

    :return: A log record augmented with the values required by LOG_FORMAT, as per `_update_record(...)`
    """
    record = _python_record_factory(*args, **kwargs)
    _update_record(record)
    return record