Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

semlogr-sinks-logentries

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semlogr-sinks-logentries

  • 0.2.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Codeship Status for semlogr/semlogr-sinks-logentries

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!

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc