xyassini / logsnag

Ruby Library for sending LogSnag events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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")

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.

About

Ruby Library for sending LogSnag events

License:MIT License


Languages

Language:Ruby 96.6%Language:Shell 3.4%