This repository contains the sources for the client-side components of the LogFlake product suite for applications logs and performance collection for Golang applications.
🏠 [LogFlake Website](https://logflake.io) | 🔥 [CloudPhoenix Website](https://cloudphoenix.it)
Package Name | Version |
---|---|
logflake-client-go |
Retrieve your application-key from Application Settings in LogFlake UI.
import "github.com/CloudPhoenix/logflake-client-go/logflake"
i := logflake.New("application-key")
i.SendLog(logflake.Log{
Content: "Hello World",
Level: logflake.LevelInfo,
})
Use LogFlake as slog handler
i := logflake.New("application-key")
logger := slog.New(logflake.SlogOption{
Level: slog.LevelDebug,
Instance: i,
}.NewLogFlakeHandler())
slog.SetDefault(logger)