Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.07 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.07 KB

Logsnag Clojure

Clojure library for interacting with the LogSnag API. Small, opinionated, and hand-crafted.

Clojars Project License: MIT

Coordinates

com.github.dvliman/logsnag {:mvn/version "0.0.1"}

Usage

First, require the library. You can generate token on Settings > API > My Tokens page

(require '[dvliman.logsnag :as logsnag]')

(def logsnag-client 
  {:token "26...0b" :project "my-project"})

(logsnag/publish
  logsnag-client
  {:notify true
   :channel :waitlist
   :event "user joined"
   :description "[email protected] joined waitlist"
   :icon ":rose:"})
    
(logsnag/insight
  logsnag-client 
  {:title "pageview"
   :value 1
   :icon ":rose:"})

License

Copyright © 2023 dvliman.com

Distributed under the Eclipse Public License version 1.0.