Documentation
¶
Index ¶
- func Debug(ctx context.Context, msg string, args ...any)
- func Error(ctx context.Context, msg string, err error, args ...any)
- func FromContext(ctx context.Context) *slog.Logger
- func Info(ctx context.Context, msg string, args ...any)
- func Initialize(debug, verbose bool)
- func Warn(ctx context.Context, msg string, args ...any)
- func With(ctx context.Context, args ...any) context.Context
- func WithLogger(ctx context.Context, logger *slog.Logger) context.Context
- type PrettyHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(debug, verbose bool)
Types ¶
type PrettyHandler ¶
type PrettyHandler struct {
// contains filtered or unexported fields
}
PrettyHandler is a custom slog.Handler for human-friendly CLI output
func NewPrettyHandler ¶
func NewPrettyHandler(w io.Writer, opts *slog.HandlerOptions) *PrettyHandler
Click to show internal directories.
Click to hide internal directories.