how to expose getLogger method to use in rospy
Hello,
I would like to use python logging getLogger interface to build a tree of logger objects.
Unfortunately I cannot do it without modifying 2 files inside rospy package. I come up with a hack that alter the files inside Dockerfile:
RUN echo "from .core import getLogger as getLogger" >> /opt/ros/noetic/lib/python3/dist-packages/rospy/__init__.py && echo "getLogger = logging.getLogger" >> /opt/ros/noetic/lib/python3/dist-packages/rospy/core.py
But maybe someone have a better idea? Or maybe I could propose a code change to rospy package to expose this method?
Regards