PostHog Error Tracking for Elixir

PostHog Error Tracking is under active development, and so is this library. It works, but there is still a long way ahead of it. Most notably, PostHog's error tracking is language-aware and does not support Elixir yet. So we have to pretend that the errors are coming from Python 🥸. This is the level of "roughness around the edges" you can expect.

Getting Started

Add LogHog to the deps:

def deps do
  [
    {:log_hog, "~> 0.1"}
  ]
end

Configure LogHog Application environment:

config :log_hog,
  public_url: "https://us.i.posthog.com",
  api_key: "my_api_key"

Alternatively, you can attach LogHog.Handler yourself.