Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Make install more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Feb 24, 2017
1 parent 329e182 commit 78fecee
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,33 +290,30 @@ value.

## Installation

```ruby
# Gemfile
gem 'timber'
```
1. *Add* the `timber` gem in `Gemfile`:

```ruby
# Gemfile

## Setup

<details><summary><strong>Rails (all versions, including edge)</strong></summary><p>
gem 'timber'
```

👉 **Prefer examples?** Checkout our the [Timber install example pull request](https://github.com/timberio/ruby-rails-example-app/pull/1/files)
2. *Install* the `Timber::Logger` in `config/environments/production.rb`:

---
```ruby
# config/environments/production.rb

*Replace* any existing `config.logger=` calls in `config/environments/production.rb` with:
# !!! Be sure to replace any existing config.logger = calls !!!

```ruby
# config/environments/production.rb
config.logger = ActiveSupport::TaggedLogging.new(Timber::Logger.new(STDOUT))
```

config.logger = ActiveSupport::TaggedLogging.new(Timber::Logger.new(STDOUT))
```
👉 **Prefer examples?** Checkout our the [Timber install example pull request](https://github.com/timberio/ruby-rails-example-app/pull/1/files)

---

</p></details>
<details><summary><strong>Not using Rails?</strong></summary><p>

<details><summary><strong>Other</strong></summary><p>
No problem! You can easily install Timber following these steps:

1. *Insert* the Timber probes:

Expand Down

0 comments on commit 78fecee

Please sign in to comment.