No commit activity in last 3 years
No release in over 3 years
A semlogr sink for logging to logentries.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 0.11
~> 12.3
~> 3.7
~> 0.53

Runtime

~> 0.3.2
 Project Readme

Codeship Status for semlogr/semlogr-sinks-logentries Maintainability Test Coverage

Logenties sink for Semlogr

This sink provides support for writing logs to logentries, the sink currently makes use of the device within the logstash-logger gem which provides a buffered device for writing entries to logentries in batches and saved me a bunch of time to get this sink off the ground.

Installation

To install:

gem install semlogr-sinks-logentries

Or if using bundler, add semlogr to your Gemfile:

gem 'semlogr-sinks-logentries'

then:

bundle install

Getting Started

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

require 'semlogr'
require 'semlogr/sinks/logentries'

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

  c.write_to :logentries, 'TOKEN'
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!