Skip to content

Commit

Permalink
Merge pull request #296 from honeybadger-io/master
Browse files Browse the repository at this point in the history
Add Honeybadger and Honeybadger Insights to Appenders doc
  • Loading branch information
reidmorrison authored Sep 5, 2024
2 parents f2558aa + c663bfd commit 54358a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [unreleased]


## [4.16.1]

- Add Honeybadger and Honeybadger Insights to Appenders doc.
- Fix regression in `SemanticLogger::Appenders#close`

## [4.16.0]
Expand Down
18 changes: 18 additions & 0 deletions docs/appenders.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Log messages can be written to one or more of the following destinations at the
* MongoDB
* Rollbar
* Sentry
* Honeybadger
* Honeybadger Insights
* Logger, log4r, etc.

To ensure no log messages are lost it is recommend to use TCP over UDP for logging purposes.
Expand Down Expand Up @@ -739,6 +741,22 @@ SemanticLogger.tagged(transaction_name: "foo", user_id: 42, baz: "quz") do
end
~~~

### Honeybadger and Honeybadger Insights

Forward errors to Honeybadger.

~~~ruby
SemanticLogger.add_appender(appender: :honeybadger)
~~~

Forward all log messages to Honeybadger Insights as events.

~~~ruby
SemanticLogger.add_appender(appender: :honeybadger_insights)
~~~

Both appenders use the Honeybadger [gem configuration](https://docs.honeybadger.io/lib/ruby/gem-reference/configuration/).

### Logger, log4r, etc.

Semantic Logger can log to other logging libraries:
Expand Down

0 comments on commit 54358a4

Please sign in to comment.