Skip to content

mediafly/go-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-log

This public go package configures log/slog stdlib for json formatted logs suitable for sending to Datadog.

APM trace_id is added from request context if available.

example usage:

import (
    "log/slog"
    "github.com/mediafly/go-log/log"
)

func init() {
    log.SetupLog(slog.LevelInfo)
    slog.Info(fmt.Sprintf("origin: %v", origin))
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages