Project

logsnag

0.0
No release in over a year
Ruby Library for sending LogSnag events
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

LogSnag

Ruby Library for sending LogSnag events.

Installation

Add this line to your application's Gemfile:

gem "logsnag"

Usage

Set Token

Firstly you'll need to set an API Token.

@logsnag = LogSnag::Client.new(token: "")

Sending an Event

@logsnag.log(project: "my-project", channel: "channel", event: "my-event")

Sending an Insight

@logsnag.insight(project: "my-project", title: "Title of Insight", value: "the-value")

Available Options:

  • description
  • icon - Single emoji for the event icon
  • notify - if this event should send a notification

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/deanpcmad/logsnag.

License

The gem is available as open source under the terms of the MIT License.