Clojure library for interacting with the LogSnag API. Small, opinionated, and hand-crafted.
com.github.dvliman/logsnag {:mvn/version "0.0.1"}
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:"})
Copyright © 2023 dvliman.com
Distributed under the Eclipse Public License version 1.0.