axiom-log-this-go

A small Go slog library made to create a *slog.Logger that ingest the logs into Axiom.

Made primary to run on WASM runtimes without exploding the binary size

📜 axiom-log-this-go repository

Install

go get github.com/Darckfast/axiom-log-this-go

Usage

var log = logthis.NewLogger(http.DefaultClient.Do) // you must pass a Do function

defer logthis.Flush() // need to be called, or not all logs will be sent to axiom api

log.Info("hello world") // it's just plain and simple slog std lib

Why?

I needed a logger that would ingest logs into Axiom, worked in WASM runtimes, and it would not explode my compiled binary size. After some testing, i made this package to check all my requirements