Sha256: f3ec0bdf44795de339d116341e5dff3f5fb4f96b943ef7eed999a76c956be803

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

![Codeship Status for semlogr/semlogr-sinks-seq](https://codeship.com/projects/f9d58b10-15c6-0136-e7ad-1a0f3e5cdd95/status?branch=master)

# Seq sink for Semlogr

This sink provides support for writing logs to [seq](https://getseq.net/), the sink uses [ruby-stud](https://github.com/jordansissel/ruby-stud) to provide batch flushing of events using the Seq HTTP API.

## Installation

To install:

    gem install semlogr-sinks-seq

Or if using bundler, add semlogr to your Gemfile:

    gem 'semlogr-sinks-seq'

then:

    bundle install

## Getting Started

Create an instance of the logger configuring the seq sink with your token.

```ruby
require 'semlogr'
require 'semlogr/sinks/seq'

Semlogr.logger = Semlogr.create_logger do |c|
  c.log_at :info

  c.write_to :seq, server_url: 'http://seq', api_key: '1234'
end

Semlogr.info('Customer {customer_id} did something interesting', customer_id: 1234)
```

## Development

After cloning the repository run `bundle install` to get up and running, to run the specs just run `rake spec`.

## Contributing

See anything broken or something you would like to improve? feel free to submit an issue or better yet a pull request!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
semlogr-sinks-seq-0.1.6 README.md
semlogr-sinks-seq-0.1.5 README.md
semlogr-sinks-seq-0.1.4 README.md
semlogr-sinks-seq-0.1.3 README.md
semlogr-sinks-seq-0.1.2 README.md