Changed the logging logic in the SDK to use independent loggers for each module and class.
The logic to correctly get the loggers was implemented in the class LoggerProvider to have it in a single place.
All places where the SDK was logging were updated to use the new LoggerProvider.
The PR includes unit tests to validate the logs format. For that the package tests was created.
There are two new development dependencies added to support the implementation and execution of the unit tests:
pytest
pytest-asyncio
The new dependencies were added as dev dependencies to not require them when the SDK is installed as a package.
Created a new package called utils to start moving all utility modules there. Right now the utils module has been moved there. The new logger module has been created in there too.
Changed the logging logic in the SDK to use independent loggers for each module and class. The logic to correctly get the loggers was implemented in the class
LoggerProvider
to have it in a single place. All places where the SDK was logging were updated to use the newLoggerProvider
. The PR includes unit tests to validate the logs format. For that the packagetests
was created.There are two new development dependencies added to support the implementation and execution of the unit tests:
Created a new package called
utils
to start moving all utility modules there. Right now theutils
module has been moved there. The newlogger
module has been created in there too.