librato/librato-rails — pull request #23 by nextmat (2012-11-01 18:58:20+00:00)
Title: Feature/improved logging

- support a distinct log_level setting `[off, error, warn, info (default), debug, trace]`
- log_level and prefix are now settable via `LIBRATO_METRICS_LOG_LEVEL` and `LIBRATO_METRICS_PREFIX`
- measurements sent are visible in `trace` mode along with timings for submission
- settings are dumped during startup on `debug` or lower modes
- added easy ability to trace environment or settings on demand
- cleaned up several existing log messages
- add some initial performance benchmarks for `increment/measure/timing` operations
- whitespace fixes