Hi all,
as of today, the Python SDK uses the root logger wherever we log. This
means that it's impossible to have different logging levels depending on
the section of the code that we want to debug most.

I have been doing some work on the FnApiRunner, and adding logging for it.
I would like to start using a logger hierarchy, and slowly transition the
rest of the project to use per-module loggers.

On each module, we could have a line like so:

_LOGGER = logging.getLogger(__name__)

and simply log everything on that _LOGGER. Is that an acceptable thing to
do for everyone?

If I see no objections, I will change the FnApiRunner to use a logger like
this, and change other sections of the code as I interact with them.
Best
-P.

Reply via email to