Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Honeybadger and Honeybadger Insights to Appenders doc #296

Merged
merged 3 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading