Skip to content

Commit

Permalink
Clarify lumberaxe docs (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
that-jill authored Aug 18, 2022
1 parent 2b3341e commit f8dc07f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/lumberaxe/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,15 @@ To set up JSON logging on puma, add this to your puma config:
```ruby
# puma.rb

require "lumberaxe"

log_formatter(&Lumberaxe.puma_formatter)
```

If you don't have a tool for parsing JSON in local development, you can add this:

```ruby
# development.rb

config.logger = ActiveSupport::TaggedLogging.new(Logger.new($stdout))
```

0 comments on commit f8dc07f

Please sign in to comment.