failsafe-lib / failsafe

Fault tolerance and resilience patterns for the JVM
https://failsafe.dev
Apache License 2.0
4.16k stars 295 forks source link

where is the logging? #355

Closed bytearchive closed 1 year ago

bytearchive commented 1 year ago

I am trying to integrate with my project and calling any method with delay/backoff policy hangs the thread.... and I want to see whats going on...

the thing does respond after delay and spits out a giant stack-trace...

I tried adding regular java logging for dev.failsafe but I dont see anything....

does your lib spits out any info/debug log so that client developers can see whats going on?

jhalterman commented 1 year ago

There are event listeners you can use to perform logging, both at the RetryPolicy level and the Failsafe level:

https://failsafe.dev/retry/#event-listeners (bottom of the page) https://failsafe.dev/event-listeners/

jhalterman commented 1 year ago

Closing for now. Feel free to reopen if the above didn't answer your question.