dagolden / HTTP-Tiny-UA

Higher-level UA features for HTTP::Tiny
https://metacpan.org/author/DAGOLDEN
4 stars 8 forks source link

Add log/debug/trace support #8

Open dagolden opened 9 years ago

dagolden commented 9 years ago

Per chansen/p5-http-tiny#58 there's a request for the ability to get log output of request and response details.

My inclination is to use Log::Any for this, which is low overhead and allows people to hook up various log collectors. (And Log::Any is going to get even better once I finally document my revision and ship it!)

Then I'd have no problem with an HTTP_TINY_UA_TRACE environment variable automatically hooking up Log::Any to STDERR for messages from HTTP::Tiny.

peczenyj commented 9 years ago

Well done, if it is not in your roadmap I can try to submit a pull request for this. It is not urgent for me, but should be interesting.

dagolden commented 9 years ago

I'm not actively developing HTTP::Tiny::UA -- not because I don't want to, but because I have too many projects and not enough round 'tuits.

It's mostly where I'm directing people's contributions that don't fit into HTTP::Tiny itself. I do exercise a little bit of design guidance (e.g. suggesting Log::Any).

So if this seems interesting to you, go for it!