Versions in this module Expand all Collapse all v0 v0.1.1 Oct 27, 2026 v0.1.0 Oct 26, 2026 Changes in this version + const Version + func CaptureError(err error, fields ...Fields) + func Close() + func Debug(message any, fields ...Fields) + func Error(message any, fields ...Fields) + func Fatal(message any, fields ...Fields) + func Flush(timeout time.Duration) bool + func Info(message any, fields ...Fields) + func Init(cfg Config) + func IsActive() bool + func Log(level Level, message any, fields Fields) + func LogService(service string, level Level, message any, fields Fields) + func Middleware(next http.Handler) http.Handler + func NewSlogHandler(opts *SlogOptions) slog.Handler + func Recover() + func ResetSessionID() + func SessionID() string + func SetContext(fields Fields) + func Warn(message any, fields ...Fields) + type Config struct + APIKey string + AppVersion string + Endpoint string + Environment string + FlushInterval time.Duration + HTTPClient *http.Client + MaxBatchSize int + Service string + Source string + type Fields map[string]any + type Level string + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelWarn + type SlogOptions struct + Level slog.Leveler