You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loguru is not api compatible with standard logging despite efforts in #294, so it may be best to raise an error or wrap the loguru logger with a standard logger when doing this
Here's a wrapping approach which may be the best thing for people to setup in accordance with their own logging needs. Not sure if @Delgan has a better approach though.
The text was updated successfully, but these errors were encountered:
"""Before call strategy that logs to some logger the attempt."""
Consequently, users should not expect tenacity to be compatible with Loguru's logger, nor should tenacity developers necessarily care about that. The compatibility error should be raised by static linters such as Mypy.
In this situation, the most appropriate workaround is for users to define a standard logger wrapping Loguru's logger to bridge the gap between the two libraries. I added more details in Delgan/loguru#1008 (comment).
Loguru is not api compatible with standard logging despite efforts in #294, so it may be best to raise an error or wrap the loguru logger with a standard logger when doing this
As it can cause a
KeyError
due to thisHere's a wrapping approach which may be the best thing for people to setup in accordance with their own logging needs. Not sure if @Delgan has a better approach though.
The text was updated successfully, but these errors were encountered: