Sha256: 35b7a79a61d612c7703ee97e627f92c8ea2200fadd6dc5a62fa9d77aa59bbfb3

Contents?: true

Size: 777 Bytes

Versions: 3

Compression:

Stored size: 777 Bytes

Contents

# Sysloggable

Write your logs to syslog. Message is formatted with options and duration.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'sysloggable'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sysloggable

## Usage

```ruby
class FooService
  include ::Sysloggable::InjectLogger(ident: 'banners_stats')

  def call
    message = "Heavy operation"
    logger.info(message, operation: 'dump', counter: counter.id, date: date) do |params|
      heavy_process!
    end
  rescue exception
    logger.fatal(exception.message, trace: exception.backtrace.join("\n"))
    raise
  end
end
```

## Development

Install Docker, Docker-Compose and DIP https://github.com/bibendi/dip

```sh
dip provision

dip rspec
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sysloggable-0.2.1 README.md
sysloggable-0.2.0 README.md
sysloggable-0.1.0 README.md