Sha256: 19647aa943221583b56a6dc6673f62258b9c7ef4fd70832f2260e8df3908e5e6
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true SlackWebhookLogger.setup do |config| # The URL where messages will be sent. This is required. config.webhook_url = "https://hooks.slack.com/services/xxx/yyy/zzz" # The minimum error level to see in Slack. This is optional; the default is :WARN. # # All log levels are supported, but don't rely on anything less then :WARN # since Slack only allows one message per minute. # config.level = :WARN # You can provide a custom log formatter if you want to. This is optional. # The formatter must construct a JSON blob that adheres to Slack's expected # POST payload for `chat.postMessage`: https://api.slack.com/methods/chat.postMessage # config.formatter = SomeOtherFormatter.new # You can provide an array of regular expressions to ignore certain messages # from being sent to Slack. This is optional. # config.ignore_patterns = [] # You can provide a specific name for your app; otherwise, it will default to # the name of your Rails app. This is optional. # config.application_name = [] end
Version data entries
7 entries across 7 versions & 1 rubygems