Skip to content

Commit

Permalink
Add example on how to add a timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
roidrage committed Oct 18, 2013
1 parent 8306542 commit 29e8aff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ MyApp::Application.configure do
end
```

Or you can add a timestamp:

```ruby
MyApp::Application.configure do
config.lograge.enabled = true

# add time to lograge
config.lograge.custom_options = lambda do |event|
{:time => event.time}
end
end
```

You can then add custom variables to the event to be used in custom_options

```ruby
Expand Down

0 comments on commit 29e8aff

Please sign in to comment.