o
    "h                     @   s:   d Z ddlZddlmZ d	dedee dejfddZdS )
a  This module contains helper functions related to logging.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
    N)Optional	file_name
class_namereturnc                 C   sV   |  d}|d dr|du r|d d}n|d  |p#|d   }t|S )a  Returns a logger with an appropriate name.
    Use as follows::

        logger = get_logger(__name__)

    If for example `__name__` is `telegram.ext._updater`, the logger will be named
    `telegram.ext.Updater`. If `class_name` is passed, this will result in
    `telegram.ext.<class_name>`. Useful e.g. for CamelCase class names.

    If the file name points to a utils module, the logger name will simply be `telegram(.ext)`.

    Returns:
        :class:`logging.Logger`: The logger.
    _   utilsNr   .)split
startswithrstrip
capitalizelogging	getLogger)r   r   partsname r   J/var/www/html/venv/lib/python3.10/site-packages/telegram/_utils/logging.py
get_logger   s
   

r   )N)__doc__r   typingr   strLoggerr   r   r   r   r   <module>   s   "