Documentation
¶
Index ¶
- func Debug(msg string, v ...any)
- func Debugf(format string, v ...any)
- func Error(values ...any) error
- func Errorf(format string, v ...any) error
- func GetLogFilepath() string
- func Info(msg string, v ...any)
- func Infof(format string, v ...any)
- func SetCliLogLevel(l slog.Level)
- func Warn(msg string, v ...any)
- func Warnf(format string, v ...any)
- type CliHandler
- func (h *CliHandler) Enabled(ctx context.Context, level slog.Level) bool
- func (h *CliHandler) Handle(ctx context.Context, r slog.Record) error
- func (h *CliHandler) Handler() slog.Handler
- func (h *CliHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (h *CliHandler) WithGroup(name string) slog.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogFilepath ¶
func GetLogFilepath() string
func SetCliLogLevel ¶
Types ¶
type CliHandler ¶
type CliHandler struct {
// contains filtered or unexported fields
}
Log handler specifically for CLI usage.
func NewCliHandler ¶
func NewCliHandler(h slog.Handler) *CliHandler
func (*CliHandler) Handler ¶
func (h *CliHandler) Handler() slog.Handler
Click to show internal directories.
Click to hide internal directories.