def _convert_text_to_logs_format(text: str) -> str:
    """Convert text into format that is suitable for logs.

    Arguments:
        text: text that should be formatted.

    Returns:
        Shape for logging in loguru.
    """
    max_log_text_length = 50
    start_text_index = 15
    end_text_index = 5

    return (
        "...".join((text[:start_text_index], text[-end_text_index:]))
        if len(text) > max_log_text_length
        else text
    )