
    Yi                     P    S r SSKrSSKJr  SS\S\\   S\R
                  4S jjrg)	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                     U R                  S5      nUS   R                  S5      (       a  Uc  US   R                  S5      nO#US    U=(       d    US   R                  5        3n[        R
                  " U5      $ )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.
_   utilsr   .)split
startswithrstrip
capitalizelogging	getLogger)r   r   partsnames       B/app/.venv/lib/python3.13/site-packages/telegram/_utils/logging.py
get_loggerr      st     OOC EQx7##
(:Qxs#(J?%(*=*=*?@AT""    )N)__doc__r   typingr   strLoggerr    r   r   <module>r      s4   &  ## #8C= #GNN #r   