Sha256: de3cb33ec5de89e7ada4082229be80823c41ad2aceb5a64a21548de7983f4574
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack_webhook_logger-0.1.0 | lib/generators/templates/slack_webhook_logger.rb |