unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 6 forks source link

Remove loguru dependency #53

Closed pederhan closed 1 year ago

pederhan commented 1 year ago

This PR removes the loguru dependency and re-implements all current log functionality using the standard library logging module. A single logger called "harborapi" is instantiated in the new log.py module, which is then re-used by other modules. This lets us configure and use a single logger for the entire library.

Furthermore, support for a new envvar HARBORAPI_LOGGING has been added, which can be used to toggle logging.

New tests have been added to ensure logging works as expected.

Closes #52