libpcp / pcp

PCP client library
BSD 2-Clause "Simplified" License
69 stars 30 forks source link

[Discusson] Setting debug verbosity via environment variables #3

Closed shadeslayer closed 10 years ago

shadeslayer commented 10 years ago

Hi I'd like to propose setting the debug verbosity by a env variable such as PCP_DEBUG , then anyone can change the debug verbosity instead of hard coding it inside an application.

libpcp commented 10 years ago

Hi, thanks for proposal. It sounds good to me. If you have a patch, I'll merge it. Otherwise I'll implement it in a near future.

ptatrai commented 10 years ago

I've added a check for PCP_LOG_LEVEL env. variable in the latest commit https://github.com/libpcp/pcp/commit/9732fb402f843f45ddf39de2c382e0958f1f0a08