InjectiveLabs / sdk-python

Injective Exchange API for Python clients
Apache License 2.0
41 stars 27 forks source link

feat/independent loggers for components #204

Closed aarmoa closed 1 year ago

aarmoa commented 1 year ago

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:

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.