Sha256: fce8cf118c5f68662bebb07085547ac22272cbbb3935968766cff2344405c313
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 Bytes
Contents
# Rails Over HTTP Installation Instructions The quickest and easiesy way to get up and running with Timber. No agent to install, deploy and go! ## 1. Install the gem Add timber to your Gemfile: ``` gem 'timber-ruby' ``` ## 2. Add the logger to your environment files: ```ruby # config/environments/production.rb (or staging, etc) config.logger = Timber::Logger.new(Timber::LogDevices::HTTP.new(ENV['TIMBER_KEY']))) ``` * You can obtain your Timber API key [here](https://timber.io). * If you set `ENV['TIMBER_KEY']`, you do not have to pass it as an argument. The example above provides it for explicitness. * The `Timber::Logger.new` function handles instantiating the Rails logger properly for your Rails version, including wrapping the logger in `ActiveSupport::TaggedLogger.new` (if available). It's equivalent to `Timber::Logger.new(ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(Timber::LogDevices::HTTP.new(ENV['TIMBER_KEY'])))`.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | docs/installation/rails_over_http.md |