module
Version:
v0.0.0-...-6b08371
Opens a new window with list of versions in this module.
Published: Dec 11, 2024
License: MIT
Opens a new window with license information.
README
¶
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))
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.