Skip to content

Commit

Permalink
Add Honeybadger and Honeybadger Insights to Appenders doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
stympy committed Aug 28, 2024
1 parent 364f3b9 commit 2fe7420
Showing 1 changed file with 18 additions and 0 deletions.
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 2fe7420

Please sign in to comment.