View Source LogsnagEx.Insight (LogsnagEx v1.0.1)

LogSnag Insight API Client.

Usage

# Track an insight
LogsnagEx.Insight.track("Active Users", 100, icon: "👥")

# Increment an insight
LogsnagEx.Insight.increment("Active Users", 1)

Summary

Functions

Increments an existing insight.

Publishes a new insight to LogSnag.

Types

value()

@type value() :: integer() | float() | String.t()

Functions

increment(title, value, opts \\ [])

Increments an existing insight.

track(title, value, opts \\ [])

Publishes a new insight to LogSnag.