Categorygithub.com/CloudPhoenix/logflake-client-go
modulepackage
1.2.0
Repository: https://github.com/cloudphoenix/logflake-client-go.git
Documentation: pkg.go.dev

# README

LogFlake Client Go

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)

Downloads

Package NameVersion
logflake-client-goGitHub Tag

Usage

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,
})

log/slog handler

Use LogFlake as slog handler

i := logflake.New("application-key")

logger := slog.New(logflake.SlogOption{
    Level: slog.LevelDebug,
    Instance: i,
}.NewLogFlakeHandler())

slog.SetDefault(logger)

# Packages

No description provided by the author
No description provided by the author