L iLdZddlZddlmZddedeedej fdZy) aThis 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_namereturnc|jd}|djdr||djd}n|d|xs|dj}t j |S)aReturns 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.`. 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 startswithrstrip capitalizelogging getLogger)rrpartsnames ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_utils/logging.py get_loggerrsq OOC E Qx7# (:Qxs#(J?%(*=*=*?@A   T "")N)__doc__rtypingrstrLoggerrrrrs4&###8C=#GNN#r