Sha256: c3a8bd2df1ce67d1b373fb811e033663fd2a9a2e123ed9a7aa62241d429a81d0

Contents?: true

Size: 596 Bytes

Versions: 11

Compression:

Stored size: 596 Bytes

Contents

# typed: false
# frozen_string_literal: true

require "slack_webhook_logger"

SlackWebhookLogger.setup do |config|
  # Webhook URL
  #
  # The URL where messages will be sent.
  config.webhook_url = fetch_infra_secret(
    label: "SLACK_LOG_URL",
    default: "https://slack.com/the_log_room",
  )

  # The minimum error level to see in Slack.
  #
  # All log levels are supported, but don't do anything less then :warn since Slack only allows one message
  # per minute.
  config.level = :WARN

  config.ignore_patterns = [/Can't verify CSRF token authenticity/, /is not a valid MIME type/]
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hephaestus-0.8.9.2 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.9.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.9 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.8 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.7.5 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.7.4 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.7.3 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.7.2 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.7.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.7.6.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.7.6 config/initializers/slack_webhook_logger.rb