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

Add ability to define logger #2

Open
EvNomad opened this issue Sep 13, 2018 · 1 comment
Open

Add ability to define logger #2

EvNomad opened this issue Sep 13, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@EvNomad
Copy link
Collaborator

EvNomad commented Sep 13, 2018

I want to be able to define custom logger for the retry attempts output.
For example:

class Service
  include Take2

  logger Logger.new('take2.log')
  on_retry proc { |error, tries| self.logger.info "#{self.name} - Retrying.. #{tries} of #{self.retriable_configuration[:retries]} (#{error})" }

end
@EvNomad EvNomad added enhancement New feature or request help wanted Extra attention is needed labels Sep 13, 2018
@EvNomad
Copy link
Collaborator Author

EvNomad commented Aug 14, 2020

Not sure about it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant