This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
v2.1.0.rc1 - 1 June 2017
binarylogic
released this
01 Jun 22:13
·
185 commits
to master
since this release
This update introduces a lot of great new configuration options and performance improvements:
Configuration options
The README
has been updated to include a configuration section. This demonstrates common configuration setups. You can also view the Timber::Config
class for a full list of options. Here's the high level overview:
- All
Timber::Integrations::*
classes received aenabled=
and asilenced=
class methods. The former disables the integration entirely, the latter keeps the integration enabled but silences the logs. Timber::Integrations::Rack::HTTPEvents
now has a.collapse_into_single_event=
method that will only log the response log instead of both the request and response.- A convenience
Timber::Config.instance.logrageify!
method was added that automatically silences the appropriate logs to behave similarly to lograge. It uses the above settings to do so. Timber::Integrations::Rack::HTTPEvents.silence_request=
was added to provide the ability to silence noisy requests (load balancer checks).
General improvements
- The
Timber::Contexts::Release
context was added and it will automatically set itself if the proper environment variables are set. You can see an example in the configuration section of theREADME
. - The installer was completely reworked and received a number of great improvements, notably the support for multiple environments, avoiding the need to run the installer multiple times.
- A lot of great doc updates. The readme has been updated as well as the library docs.