Skip to content

Multi Slack channels for Rails Exception Notifier Plugin

License

Notifications You must be signed in to change notification settings

hoangdd/exception_notification

 
 

Repository files navigation

Original documentation: smartinez87/exception_notification.

Config multi slack channels:

Rails.application.config.middleware.use ExceptionNotification::Rack,
  :multi_slack => {
    :webhook_url => "[Your webhook url]",
    :channels => {
        "default" => "#default_channel",
        "exception_name1" => "#channel1",
        "exception_name2" => "#channel2",
        "exception_name3" => "#channel4",
      },
    :additional_parameters => {
      :icon_url => "http://image.jpg",
      :mrkdwn => true
    }
  }

When one exception is raised, message will be sent to corresponding channel. In other case, message will be sent to default channel.

About

Multi Slack channels for Rails Exception Notifier Plugin

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 93.8%
  • HTML 6.2%