Skip to content
generated from maragudk/template

Scuba for the rest of us.

License

Notifications You must be signed in to change notification settings

maragudk/snorkel

Repository files navigation

snorkel

Logo

GoDoc Go

Scuba for the rest of us.

Made in 🇩🇰 by maragu, maker of online Go courses.

Features

  • Simple logger with just a single method, Event, which logs named events with a given sample rate.
  • Sane defaults log to STD_ERR and include event name, sample rate, time, and build info. More to come.
  • No external dependencies.

Usage

package main

import (
	"github.com/maragudk/snorkel"
)

func main() {
	log := snorkel.New(snorkel.Options{})

	// Log an event with the name "Yo", sample rate 1, and env=sparkly
	log.Event("Yo", 1, "env", "sparkly")
}