View Source LogsnagEx (LogsnagEx v1.0.0)

LogSnag API Client for Elixir.

Configuration

Add to your config/config.exs:

config :logsnag_ex,
  default: [
    token: "your-token",
    project: "your-project",
    disabled: false # optional
  ]

Usage

# Track an event
LogsnagEx.track("channel", "event", description: "Something happened")

# Track with a different client
LogsnagEx.track("channel", "event", client: MyApp.LogSnag)

Summary

Functions

Identifies a group in LogSnag.

Identifies a user in LogSnag.

Publishes a new log to LogSnag.

Functions

group(user_id, group_id, properties)

Identifies a group in LogSnag.

identify(user_id, properties)

Identifies a user in LogSnag.

track(channel, event, opts \\ [])

Publishes a new log to LogSnag.