You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
|[Papertrail](https://github.com/Sirupsen/logrus/blob/master/hooks/papertrail/papertrail.go)| Send errors to the Papertrail hosted logging service via UDP. |
207
207
|[Syslog](https://github.com/Sirupsen/logrus/blob/master/hooks/syslog/syslog.go)| Send errors to remote syslog server. Uses standard library `log/syslog` behind the scenes. |
208
208
|[BugSnag](https://github.com/Sirupsen/logrus/blob/master/hooks/bugsnag/bugsnag.go)| Send errors to the Bugsnag exception tracking service. |
209
+
|[Sentry](https://github.com/Sirupsen/logrus/blob/master/hooks/sentry/sentry.go)| Send errors to the Sentry error logging and aggregation service. |
209
210
|[Hiprus](https://github.com/nubo/hiprus)| Send errors to a channel in hipchat. |
210
211
|[Logrusly](https://github.com/sebest/logrusly)| Send logs to [Loggly](https://www.loggly.com/)|
211
212
|[Slackrus](https://github.com/johntdyer/slackrus)| Hook for Slack chat. |
212
213
|[Journalhook](https://github.com/wercker/journalhook)| Hook for logging to `systemd-journald`|
213
214
|[Graylog](https://github.com/gemnasium/logrus-hooks/tree/master/graylog)| Hook for logging to [Graylog](http://graylog2.org/)|
214
215
|[Raygun](https://github.com/squirkle/logrus-raygun-hook)| Hook for logging to [Raygun.io](http://raygun.io/)|
216
+
|[LFShook](https://github.com/rifflock/lfshook)| Hook for logging to the local filesystem |
217
+
|[Honeybadger](https://github.com/agonzalezro/logrus_honeybadger)| Hook for sending exceptions to Honeybadger |
218
+
|[Mail](https://github.com/zbindenren/logrus_mail)| Hook for sending exceptions via mail |
219
+
|[Rollrus](https://github.com/heroku/rollrus)| Hook for sending errors to rollbar |
220
+
|[Fluentd](https://github.com/evalphobia/logrus_fluent)| Hook for logging to fluentd |
221
+
|[Mongodb](https://github.com/weekface/mgorus)| Hook for logging to mongodb |
215
222
216
223
#### Level logging
217
224
@@ -267,7 +274,7 @@ init() {
267
274
// do something here to set environment depending on an environment variable
268
275
// or command-line flag
269
276
ifEnvironment == "production" {
270
-
log.SetFormatter(logrus.JSONFormatter)
277
+
log.SetFormatter(&log.JSONFormatter{})
271
278
} else {
272
279
// The TextFormatter is default, you don't actually have to do this.
0 commit comments