nberger / ring-logger

Log ring requests & responses using your favorite logging backend
Eclipse Public License 1.0
98 stars 20 forks source link

Options to set log level for starting and finished #21

Closed devth closed 6 years ago

devth commented 7 years ago

Defining custom printers to do this is onerous for starting and especially for finished.

nberger commented 7 years ago

Thanks for reporting!

I see the difficulty in creating custom printers for those messages. Not sure what's a good way to pass those options (especially for finished because it might log an info or an error message), or how we can make it easier to create a custom printer for them. I have to think more about it.

nberger commented 6 years ago

Sorry for not coming back to this before. I never got around to finding a good way to solve this: I didn't want to add more customization options, it would start to be like a nightmare of bolts and switches so users would rather just override the printer multimethods. I think I found a way now and I explain it in the issue about the future 0.8.x series. If you are still interested on this, please take a look, any feedback would be appreciated. I'll close this issue now.