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.
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 newlog.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