Versions in this module Expand all Collapse all v1 v1.1.0 Mar 22, 2026 v1.0.0 Feb 20, 2026 Changes in this version + func Attr(color uint8, attr slog.Attr) slog.Attr + func Debug(msg string, args ...any) + func Debugf(format string, args ...any) + func Err(err error) slog.Attr + func Error(msg string, args ...any) + func Errorf(format string, args ...any) + func Fatal(msg string, args ...any) + func Fatalf(format string, args ...any) + func Info(msg string, args ...any) + func Infof(format string, args ...any) + func Init(level Level, logFilePath ...string) error + func NewHandler(w io.Writer, opts *Options) slog.Handler + func Warn(msg string, args ...any) + func Warnf(format string, args ...any) + func With(args ...any) *slog.Logger + type Level int + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + type Options struct + AddSource bool + Level slog.Leveler + NoColor bool + ReplaceAttr func(groups []string, attr slog.Attr) slog.Attr + TimeFormat string