Sha256: 4780be58044316381e42709ceceddabc743a1ea63382abacf657858bff15cee0

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

# Slack::WebhookLogger

A simple Slack logger using ActiveSupport broadcast and a slim HTTPS call.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'slack-webhooklogger'
```

And then execute:

```
$ bundle install
```

Or install it yourself as:

```
$ gem install slack-webhooklogger
```

Then, run the install generator:

```
$ rails generate slack-webhooklogger:install
```

Provide the webhook URL in the config, and finally, extend the logger:

```ruby
config.after_initialize do
  Rails.logger.extend ActiveSupport::Logger.broadcast(SlackWebhookLogger.logger)
end
```

## Configuration

You can change the log level or the format of the logging text if you wish. See the generated slack_webhook_logger.rb file for more infomation on that.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack_webhook_logger-0.1.0 README.md