Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom loggers #64

Merged
merged 4 commits into from
Dec 15, 2018
Merged

Custom loggers #64

merged 4 commits into from
Dec 15, 2018

Conversation

bgreen-litl
Copy link
Member

@bgreen-litl bgreen-litl commented Nov 29, 2018

This adds a logger kwarg to both decorators. This allows the user
to specify an alternative logger to use for the backoff and giveup
events. This logger can be specified either as a string name or as a
Logger object.

In addition, the default logging can be disabled entirely by
specifying logger=None. In this case, a user could specify their own
alterative logging behavior by way of event handlers.

This should address multiple issues that have been filed around making
logging more customizable, including:

Bob Green added 3 commits November 28, 2018 20:00
This adds a `logger` kwarg to both decorators.  This allows the user
to specify an alternative logger to use for the backoff and giveup
events. This logger can be specified either as a string name or as a
Logger object.

In addition, the default logging can be disabled entirely by
specifying logger=None.  In this case, a user could specify their own
alterative logging behavior by way of event handlers.

This should address multiple issues that have been filed around making
logging more customizable, including:

litl#37
litl#50
litl#52
@terrisgit
Copy link

Thanks. I'll try it.

@terrisgit
Copy link

Love it!

@bgreen-litl bgreen-litl merged commit bb4e3a8 into litl:master Dec 15, 2018
@bgreen-litl bgreen-litl deleted the custom-loggers branch December 15, 2018 17:21
@terrisgit
Copy link

terrisgit commented Dec 19, 2018

.. release pretty please ?

@bgreen-litl
Copy link
Member Author

backoff v1.8.0 is now released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants